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

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


Name Type Description
admin_rights ChatAdminRights Admin rights



Possible errors

Code Type Description
400 RIGHTS_NOT_MODIFIED The new admin rights are equal to the old rights, no change was made.
400 USER_BOT_REQUIRED This method can only be called by a bot.

Bots can use this method

Related pages

Admin, banned, default rights

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