Tourmaline::SwitchInlineQueryChosenChat
Inherits JSON::Serializable / Reference / Object
This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.
Constructors
new(pull : JSON::PullParser)
Sourcenew(query : String | Nil = nil, allow_user_chats : Bool | Nil = nil, allow_bot_chats : Bool | Nil = nil, allow_group_chats : Bool | Nil = nil, allow_channel_chats : Bool | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
Optional. True, if private chats with bots can be chosen
Optional. True, if channel chats can be chosen
Optional. True, if group and supergroup chats can be chosen
Optional. True, if private chats with users can be chosen
query
Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted