SwitchInlineQueryChosenChat

data class SwitchInlineQueryChosenChat(val query: String? = null, val allowUserChats: Boolean? = null, val allowBotChats: Boolean? = null, val allowGroupChats: Boolean? = null, val allowChannelChats: Boolean? = null)(source)

SwitchInlineQueryChosenChat

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

(auto-generated)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(query: String? = null, allowUserChats: Boolean? = null, allowBotChats: Boolean? = null, allowGroupChats: Boolean? = null, allowChannelChats: Boolean? = null)

Properties

Link copied to clipboard
@SerialName(value = "allow_bot_chats")
val allowBotChats: Boolean? = null

Optional. True, if private chats with bots can be chosen

Link copied to clipboard
@SerialName(value = "allow_channel_chats")
val allowChannelChats: Boolean? = null

Optional. True, if channel chats can be chosen

Link copied to clipboard
@SerialName(value = "allow_group_chats")
val allowGroupChats: Boolean? = null

Optional. True, if group and supergroup chats can be chosen

Link copied to clipboard
@SerialName(value = "allow_user_chats")
val allowUserChats: Boolean? = null

Optional. True, if private chats with users can be chosen

Link copied to clipboard
val query: String? = null

Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted