leaveChat method

Future<bool> leaveChat()

Leaves the current chat.

Example:

await ctx.leaveChat();

Implementation

Future<bool> leaveChat() async {
  final chatId = _getChatId();
  _verifyInfo([chatId], APIMethod.leaveChat);

  return api.leaveChat(chatId!);
}