telegram api method · layer 229 · #2f98c3d5

messages.createForumTopic

usable by users and bots

definition

messages.createForumTopic#2f98c3d5 flags:# title_missing:flags.4?true peer:InputPeer title:string icon_color:flags.0?int icon_emoji_id:flags.3?long random_id:long send_as:flags.2?InputPeer = Updates;

parameters

nametypedescription
flags#Flags, see TL conditional fields
title_missingflags.4?true
peerInputPeer
titlestring
icon_colorflags.0?int
icon_emoji_idflags.3?long
random_idlong
send_asflags.2?InputPeer

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.
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).
403BOT_FORUM_CREATE_FORBIDDENSince the bot's user.bot_forum_can_manage_topics flag is not set, the user cannot create or modify bot forum topics.
403PREMIUM_ACCOUNT_REQUIREDA premium account is required to execute this action.

history

present in layers 216–229

idlayers
#2f98c3d5216–229