class Tourmaline::SwitchInlineQueryChosenChat
- Tourmaline::SwitchInlineQueryChosenChat
- Reference
- Object
Overview
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
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(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)
Instance Method Summary
-
#allow_bot_chats=(allow_bot_chats : Bool | Nil)
Optional.
-
#allow_bot_chats? : Bool | Nil
Optional.
-
#allow_channel_chats=(allow_channel_chats : Bool | Nil)
Optional.
-
#allow_channel_chats? : Bool | Nil
Optional.
-
#allow_group_chats=(allow_group_chats : Bool | Nil)
Optional.
-
#allow_group_chats? : Bool | Nil
Optional.
-
#allow_user_chats=(allow_user_chats : Bool | Nil)
Optional.
-
#allow_user_chats? : Bool | Nil
Optional.
-
#query : String | Nil
Optional.
-
#query=(query : String | Nil)
Optional.
Constructor Detail
def self.new(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)
#
Instance Method Detail
def allow_bot_chats=(allow_bot_chats : Bool | Nil)
#
Optional. True, if private chats with bots can be chosen
def allow_channel_chats=(allow_channel_chats : Bool | Nil)
#
Optional. True, if channel chats can be chosen
def allow_group_chats=(allow_group_chats : Bool | Nil)
#
Optional. True, if group and supergroup chats can be chosen
def allow_user_chats=(allow_user_chats : Bool | Nil)
#
Optional. True, if private chats with users can be chosen
def query : String | Nil
#
Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted
def query=(query : String | Nil)
#
Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted