class Tourmaline::SwitchInlineQueryChosenChat
inherits Reference
#
This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.
Included modules
JSON::Serializable
Constructors#
.new(query : String? = nil, allow_user_chats : Bool? = nil, allow_bot_chats : Bool? = nil, allow_group_chats : Bool? = nil, allow_channel_chats : Bool? = nil)
#
(query : String? = nil, allow_user_chats : Bool? = nil, allow_bot_chats : Bool? = nil, allow_group_chats : Bool? = nil, allow_channel_chats : Bool? = nil)
Methods#
#allow_bot_chats=(allow_bot_chats : Bool?)
#
(allow_bot_chats : Bool?)
Optional. True, if private chats with bots can be chosen
#allow_channel_chats=(allow_channel_chats : Bool?)
#
(allow_channel_chats : Bool?)
Optional. True, if channel chats can be chosen
#allow_group_chats=(allow_group_chats : Bool?)
#
(allow_group_chats : Bool?)
Optional. True, if group and supergroup chats can be chosen
#allow_group_chats? : Bool?
#
: Bool?
Optional. True, if group and supergroup chats can be chosen
#allow_user_chats=(allow_user_chats : Bool?)
#
(allow_user_chats : Bool?)
Optional. True, if private chats with users can be chosen
#query : String?
#
: String?
Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted
#query=(query : String?)
#
(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