setMyDefaultAdministratorRights
Set default administrator rights for your bot when added to groups or channels. Customize permissions like pinning, deleting, or inviting users to match your needs.
Instructions
Change the default administrator rights requested when adding the bot as administrator to groups or channels. Returns True on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rights | No | Object describing new default administrator rights. If not specified, clears default rights. | |
| for_channels | No | Pass True to change the default administrator rights for channels. Otherwise, changes rights for groups and supergroups. |