SwitchInlineQueryInlineKeyboardButton

data class SwitchInlineQueryInlineKeyboardButton(text: String, 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

SwitchInlineQueryInlineKeyboardButton
Link copied to clipboard
common
fun SwitchInlineQueryInlineKeyboardButton(text: String, switchInlineQuery: String)

Properties

switchInlineQuery
Link copied to clipboard
common
val switchInlineQuery: String
text
Link copied to clipboard
common
open override val text: String