telegram api method · layer 229 · #40582bb2

channels.setDiscussionGroup

usable by users

Associate a group to a channel as discussion group for that channel

definition

channels.setDiscussionGroup#40582bb2 broadcast:InputChannel group:InputChannel = Bool;

parameters

nametypedescription
broadcastInputChannelChannel
groupInputChannelDiscussion group to associate to the channel

returns

Bool

errors (9)

codeerrordescription
400BROADCAST_ID_INVALIDBroadcast ID invalid.
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.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400LINK_NOT_MODIFIEDDiscussion link not modified.
400MEGAGROUP_ID_INVALIDInvalid supergroup ID.
400MEGAGROUP_PREHISTORY_HIDDENGroup with hidden history for new members can't be set as discussion groups.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
403CHAT_WRITE_FORBIDDENYou can't write in this chat.

history

present in layers 100–229

idlayers
#40582bb2100–229