Layer 220
method Bots
bots.setBotBroadcastDefaultAdminRights#788464e1 admin_rights:ChatAdminRights = Bool;

Parameters

Name Type Description
AdminRights ChatAdminRights Admin rights

Returns

Bool

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.

Gogram Example

// BotsSetBotBroadcastDefaultAdminRights - positional arguments
result, err := client.BotsSetBotBroadcastDefaultAdminRights(&tg.ChatAdminRights{})
if err != nil {
    // handle error
}
// result is *tg.Bool