BotCommandScopeChat.fromJson constructor

BotCommandScopeChat.fromJson(
  1. Map<String, dynamic> json
)

Parses a BotCommandScopeChat from TDLib JSON.

Implementation

factory BotCommandScopeChat.fromJson(Map<String, dynamic> json) =>
    BotCommandScopeChat(
      chatId: _readInt(json['chat_id']),
    );