SwitchInlineQueryChosenChat class abstract

This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.

Annotations
  • @freezed

Constructors

SwitchInlineQueryChosenChat({@JsonKey.new(name: 'query') String? query, @JsonKey.new(name: 'allow_user_chats') bool? allowUserChats, @JsonKey.new(name: 'allow_bot_chats') bool? allowBotChats, @JsonKey.new(name: 'allow_group_chats') bool? allowGroupChats, @JsonKey.new(name: 'allow_channel_chats') bool? allowChannelChats})
Constructs a SwitchInlineQueryChosenChat
const
factory
SwitchInlineQueryChosenChat.fromJson(Map<String, dynamic> json)
Creates a SwitchInlineQueryChosenChat object from JSON object
factory

Properties

allowBotChats → bool?
Optional. True, if private chats with bots can be chosen
no setterinherited
allowChannelChats → bool?
Optional. True, if channel chats can be chosen
no setterinherited
allowGroupChats → bool?
Optional. True, if group and supergroup chats can be chosen
no setterinherited
allowUserChats → bool?
Optional. True, if private chats with users can be chosen
no setterinherited
copyWith → $SwitchInlineQueryChosenChatCopyWith<SwitchInlineQueryChosenChat>
Create a copy of SwitchInlineQueryChosenChat with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
query → String?
Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this SwitchInlineQueryChosenChat to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited