channels.leaveChannel
Leave a channel/supergroup
Example
TL schema
Parameters
Name | Type | Description |
channel | Channel/supergroup to leave |
Result
Possible errors
Code | Type | Description |
400 | CHANNEL_INVALID | The provided channel is invalid |
400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup |
403 | CHANNEL_PUBLIC_GROUP_NA | channel/supergroup not available |
400 | MSG_ID_INVALID | Invalid message ID provided |
400 | USER_CREATOR | You can't leave this channel, because you're its creator |
400 | USER_NOT_PARTICIPANT | You're not a member of this supergroup/channel |
Can bots use this methd ?
yes
Related pages
How to handle channels, supergroups, groups, and what's the difference between them.
Last updated