BotCommandScopeChat.fromJson constructor

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

Creates a new BotCommandScopeChat object from json.

Implementation

factory BotCommandScopeChat.fromJson(Map<String, dynamic> json) {
  return BotCommandScopeChat(
    chatId: ID.create(json['chat_id']),
  );
}