telegram api method · layer 229 · #5821a5dc

stories.getPinnedStories

usable by users

Fetch the stories pinned on a peer's profile.

definition

stories.getPinnedStories#5821a5dc peer:InputPeer offset_id:int limit:int = stories.Stories;

parameters

nametypedescription
peerInputPeerPeer whose pinned stories should be fetched
offset_idintOffsets for pagination, for more info click here
limitintMaximum number of results to return, see pagination

returns

stories.Stories

errors (5)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400CHANNEL_INVALIDThe provided channel is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.
400USER_ID_INVALIDThe provided user ID is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 160–229 · constructor id changed 1×

idlayers
#0b471137160–163
#5821a5dc164–229