telegram api method · layer 215 · #6c2d9026

channels.updatePinnedForumTopic

not in the latest layer 229: last defined in layer 215

definition

channels.updatePinnedForumTopic#6c2d9026 channel:InputChannel topic_id:int pinned:Bool = Updates;

parameters

nametypedescription
channelInputChannel
topic_idint
pinnedBool

returns

Updates

errors (7)

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_FORUM_MISSINGThis supergroup is not a forum.
400CHANNEL_INVALIDThe provided channel is invalid.
400PINNED_TOO_MUCHThere are too many pinned topics, unpin some first.
400PINNED_TOPIC_NOT_MODIFIEDThe specified topic is already pinned.
400TOPIC_ID_INVALIDThe specified topic ID is invalid.
403CHAT_WRITE_FORBIDDENYou can't write in this chat.

history

present in layers 148–215

idlayers
#6c2d9026148–215