leaveChat method

Future<bool> leaveChat(
  1. ChatID chatId
)
inherited

Use this method for your bot to leave a group, supergroup or channel.

Returns True on success.

Implementation

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