BotCommandScope.allPrivateChats constructor

const BotCommandScope.allPrivateChats({
  1. @Default(BotCommandScopeType.allPrivateChats) @JsonKey(name: 'type') BotCommandScopeType type,
})

Represents the scope of bot commands, covering all private chats.

Implementation

const factory BotCommandScope.allPrivateChats({
  /// Scope type, always be [BotCommandScopeType.allPrivateChats]
  @Default(BotCommandScopeType.allPrivateChats)
  @JsonKey(name: 'type')
  final BotCommandScopeType type,
}) = BotCommandScopeAllPrivateChats;