Layer 220
ChannelsDeleteChannel
Delete a channel/supergroup
method
Users
channels.deleteChannel#c0111fe3 channel:InputChannel = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Channel | InputChannel | Channel/supergroup to delete |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 406 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 406 | CHANNEL_TOO_LARGE | Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change). |
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | CHAT_NOT_MODIFIED | No changes were made to chat information because the new information you passed is identical to the current information. |
| 403 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
Gogram Example
// ChannelsDeleteChannel - positional arguments result, err := client.ChannelsDeleteChannel(&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}) if err != nil { // handle error } // result is *tg.Updates