telegram api method · layer 229 · #40582bb2
channels.setDiscussionGroup
Associate a group to a channel as discussion group for that channel
definition
channels.setDiscussionGroup#40582bb2 broadcast:InputChannel group:InputChannel = Bool;
parameters
| name | type | description |
|---|---|---|
broadcast | InputChannel | Channel |
group | InputChannel | Discussion group to associate to the channel |
returns
errors (9)
| code | error | description |
|---|---|---|
| 400 | BROADCAST_ID_INVALID | Broadcast ID invalid. |
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | LINK_NOT_MODIFIED | Discussion link not modified. |
| 400 | MEGAGROUP_ID_INVALID | Invalid supergroup ID. |
| 400 | MEGAGROUP_PREHISTORY_HIDDEN | Group with hidden history for new members can't be set as discussion groups. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
| 403 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
history
present in layers 100–229
| id | layers |
|---|---|
| #40582bb2 | 100–229 |