channels.toggleSlowMode
Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds
Example
TL schema
Parameters
Name | Type | Description |
channel | The supergroup | |
seconds | Users will only be able to send one message every seconds seconds, 0 to disable the limitation |
Result
Possible errors
Code | Type | Description |
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 | INPUT_METHOD_INVALID_1192227_X | Invalid method |
400 | INPUT_METHOD_INVALID_1604042050_X | Invalid method |
400 | SECONDS_INVALID | Invalid duration provided |
Can bots use this methd ?
yes
Related pages
How to handle channels, supergroups, groups, and what's the difference between them.
Last updated