setChatPermissions method

Future<bool> setChatPermissions(
  1. ChatID chatId,
  2. ChatPermissions permissions
)
inherited

Use this method to set default chat permissions for all members.

The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members admin rights.

Returns True on success.

Implementation

Future<bool> setChatPermissions(
  ChatID chatId,
  ChatPermissions permissions,
) {
  return _client.apiCall(_token, 'setChatPermissions', {
    'chat_id': chatId,
    'permissions': permissions,
  });
}