SwitchInlineQueryChosenChat constructor

const SwitchInlineQueryChosenChat({
  1. @JsonKey(name: 'query') String? query,
  2. @JsonKey(name: 'allow_user_chats') bool? allowUserChats,
  3. @JsonKey(name: 'allow_bot_chats') bool? allowBotChats,
  4. @JsonKey(name: 'allow_group_chats') bool? allowGroupChats,
  5. @JsonKey(name: 'allow_channel_chats') bool? allowChannelChats,
})

Implementation

const factory SwitchInlineQueryChosenChat({
  /// Optional. The default inline query to be inserted in the input field. If
  /// left empty, only the bot's username will be inserted
  @JsonKey(name: 'query') String? query,

  /// Optional. True, if private chats with users can be chosen
  @JsonKey(name: 'allow_user_chats') bool? allowUserChats,

  /// Optional. True, if private chats with bots can be chosen
  @JsonKey(name: 'allow_bot_chats') bool? allowBotChats,

  /// Optional. True, if group and supergroup chats can be chosen
  @JsonKey(name: 'allow_group_chats') bool? allowGroupChats,

  /// Optional. True, if channel chats can be chosen
  @JsonKey(name: 'allow_channel_chats') bool? allowChannelChats,
}) = _SwitchInlineQueryChosenChat;