BotCommandScope.chatAdministrators constructor

const BotCommandScope.chatAdministrators({
  1. @Default(BotCommandScopeType.chatAdministrators) @JsonKey(name: 'type') BotCommandScopeType type,
  2. @JsonKey(name: 'chat_id') @IDConverter() required ID chatId,
})

Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.

Implementation

const factory BotCommandScope.chatAdministrators({
  /// Scope type, always be [BotCommandScopeType.chatAdministrators]
  @Default(BotCommandScopeType.chatAdministrators)
  @JsonKey(name: 'type')
  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,
}) = BotCommandScopeChatAdministrators;