telegram api method · layer 215 · #f4dfa185

channels.editForumTopic

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

definition

channels.editForumTopic#f4dfa185 flags:# channel:InputChannel topic_id:int title:flags.0?string icon_emoji_id:flags.1?long closed:flags.2?Bool hidden:flags.3?Bool = Updates;

parameters

nametypedescription
flags#
channelInputChannel
topic_idint
titleflags.0?string
icon_emoji_idflags.1?long
closedflags.2?Bool
hiddenflags.3?Bool

returns

Updates

errors (11)

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.
400DOCUMENT_INVALIDThe specified document is invalid.
400GENERAL_MODIFY_ICON_FORBIDDENYou can't modify the icon of the "General" topic.
400NOGENERAL_HIDE_FORBIDDENOnly the "General" topic with id=1 can be hidden.
400TOPIC_CLOSE_SEPARATELYThe close flag cannot be provided together with any of the other flags.
400TOPIC_HIDE_SEPARATELYThe hide flag cannot be provided together with any of the other flags.
400TOPIC_ID_INVALIDThe specified topic ID is invalid.
400TOPIC_NOT_MODIFIEDThe updated topic info is equal to the current topic info, nothing was changed.
403CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.

history

present in layers 148–215 · constructor id changed 1×

idlayers
#6c883e2d148–149
#f4dfa185150–215