setMyDefaultAdministratorRights method

Future<bool> setMyDefaultAdministratorRights({
  1. ChatAdministratorRights? rights,
  2. bool? forChannels,
})
inherited

Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels.

These rights will be suggested to users, but they are are free to modify the list before adding the bot.

Returns True on success.

Implementation

Future<bool> setMyDefaultAdministratorRights({
  ChatAdministratorRights? rights,
  bool? forChannels,
}) {
  return _client.apiCall(_token, 'setMyDefaultAdministratorRights', {
    'rights': rights,
    'for_channels': forChannels,
  });
}