telegram api method · layer 229 · #9a75a1ef

stories.togglePinned

usable by users

Pin or unpin one or more stories

definition

stories.togglePinned#9a75a1ef peer:InputPeer id:Vector<int> pinned:Bool = Vector<int>;

parameters

nametypedescription
peerInputPeerPeer where to pin or unpin stories
idVector<int>IDs of stories to pin or unpin
pinnedBoolWhether to pin or unpin the stories

returns

Vector<int>

errors (3)

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.
400PEER_ID_INVALIDThe provided peer 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
#51602944160–163
#9a75a1ef164–229