BotCommandScope.chat constructor
const
BotCommandScope.chat({
- @JsonKey(name: 'type') @Default(BotCommandScopeType.chat) BotCommandScopeType type,
- @JsonKey(name: 'chat_id') @IDConverter() required ID chatId,
Represents the scope of bot commands, covering a specific chat.
Implementation
const factory BotCommandScope.chat({
/// Scope type, always be [BotCommandScopeType.chat]
@JsonKey(name: 'type')
@Default(BotCommandScopeType.chat)
final BotCommandScopeType type,
/// Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
@JsonKey(name: 'chat_id') @IDConverter() required final ID chatId,
}) = BotCommandScopeChat;