messages.editChatDefaultBannedRights
Edit the default banned rights of a channel/supergroup/group.
Example
TL schema
Parameters
Name | Type | Description |
peer | The peer | |
banned_rights | The new global rights |
Result
Possible errors
Code | Type | Description |
400 | BANNED_RIGHTS_INVALID | You provided some invalid flags in the banned rights |
400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this |
400 | CHAT_NOT_MODIFIED | The pinned message wasn't modified |
400 | PEER_ID_INVALID | The provided peer id is invalid |
400 | UNTIL_DATE_INVALID | Invalid until date provided |
Can bots use this methd ?
yes
Related pages
How to handle channels, supergroups, groups, and what's the difference between them.
Last updated