SwitchInlineQueryInlineKeyboardButton

@Serializable
data class SwitchInlineQueryInlineKeyboardButton(val text: String, val switchInlineQuery: String) : InlineKeyboardButton

Complex button with switchInlineQuery which will be sent to you in an dev.inmo.tgbotapi.types.InlineQueries.query.InlineQuery which you may catch in dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onBaseInlineQuery and get from dev.inmo.tgbotapi.types.InlineQueries.query.BaseInlineQuery.query (or changed by user query in case he will be the fastest hand in the wild west). Can be forwarded in any chat with message in case if it is the only one button in message. Remember that clicking on this button will automatically insert username of this bot in the chosen by user chat, paste switchInlineQuery as a query and create and inline request to your bot. Visit https://core.telegram.org/bots/api#inlinekeyboardbutton for more info

Constructors

Link copied to clipboard
constructor(text: String, switchInlineQuery: String)

Properties

Link copied to clipboard
@SerialName(value = "switch_inline_query")
val switchInlineQuery: String
Link copied to clipboard
open override val text: String