SwitchInlineQueryChosenChat

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

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

Api reference

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
val allowBotChats: Boolean? = null

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

Link copied to clipboard

Optional. True, if channel chats can be chosen

Link copied to clipboard

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

Link copied to clipboard
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