channels.setDiscussionGroup #

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

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
channels.setDiscussionGroup#40582bb2 broadcast:InputChannel group:InputChannel = Bool;

Parameters #

NameTypeDescription
broadcastInputChannelChannel
groupInputChannelDiscussion group to associate to the channel

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400BROADCAST_ID_INVALIDBroadcast ID invalid.
400CHANNEL_INVALIDThe provided channel is invalid.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
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.

Discussion groups #

Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.