bots.setBotGroupDefaultAdminRights #

Set the default suggested admin rights for bots being added as admins to groups, see here for more info on how to handle them ».

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
bots.setBotGroupDefaultAdminRights#925ec9ea admin_rights:ChatAdminRights = Bool;

Parameters #

NameTypeDescription
admin_rightsChatAdminRightsAdmin rights

Result #

Bool

Only bots can use this method #

Possible errors #

CodeTypeDescription
400RIGHTS_NOT_MODIFIEDThe new admin rights are equal to the old rights, no change was made.
400USER_BOT_REQUIREDThis method can only be called by a bot.

Admin, banned, default rights #

How to handle admin permissions, granular bans and global permissions in channels, groups and supergroups.