# dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons

docs

# Package dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons

## Types

CallbackDataInlineKeyboardButton
Link copied to clipboard
data class CallbackDataInlineKeyboardButton (val text: String , val callbackData: String ) : InlineKeyboardButton
Content copied to clipboard

Simple button with callbackData which you are able to catch this type of updates and data using dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onDataCallbackQuery in case you are using Behaviour Builder OR dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter.callbackQueriesFlow with kotlinx.coroutines.flow.filterIsInstance and filtering by type dev.inmo.tgbotapi.types.queries.callback.DataCallbackQuery

CallbackGameInlineKeyboardButton
Link copied to clipboard
data class CallbackGameInlineKeyboardButton (val text: String ) : InlineKeyboardButton
Content copied to clipboard

Button with callbackGame

InlineKeyboardButton
Link copied to clipboard
interface InlineKeyboardButton
Content copied to clipboard

Some button of dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup. See inheritors and visit https://core.telegram.org/bots/api#inlinekeyboardbutton for more info

InlineKeyboardButtonSerializer
Link copied to clipboard
object InlineKeyboardButtonSerializer : KSerializer< InlineKeyboardButton >
Content copied to clipboard
LoginURLInlineKeyboardButton
Link copied to clipboard
data class LoginURLInlineKeyboardButton (val text: String , val loginUrl: LoginURL ) : InlineKeyboardButton
Content copied to clipboard

You may use this button to automatically authorize your user on loginUrl

PayInlineKeyboardButton
Link copied to clipboard
data class PayInlineKeyboardButton (val text: String ) : InlineKeyboardButton
Content copied to clipboard

This type of button must always be the first button in the first row. Visit https://core.telegram.org/bots/api#payments for mor info

SwitchInlineQueryCurrentChatInlineKeyboardButton
Link copied to clipboard
data class SwitchInlineQueryCurrentChatInlineKeyboardButton (val text: String , val switchInlineQueryCurrentChat: String ) : InlineKeyboardButton
Content copied to clipboard

Complex button with switchInlineQueryCurrentChat 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, but will be converted to a SwitchInlineQueryInlineKeyboardButton. Remember that clicking on this button will automatically insert username of this bot in current chat, paste switchInlineQueryCurrentChat as a query and create and inline request to your bot Visit https://core.telegram.org/bots/api#inlinekeyboardbutton for more info

SwitchInlineQueryInlineKeyboardButton
Link copied to clipboard
data class SwitchInlineQueryInlineKeyboardButton (val text: String , val switchInlineQuery: String ) : InlineKeyboardButton
Content copied to clipboard

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

UnknownInlineKeyboardButton
Link copied to clipboard
data class UnknownInlineKeyboardButton (val rawData: JsonElement) : InlineKeyboardButton
Content copied to clipboard
URLInlineKeyboardButton
Link copied to clipboard
data class URLInlineKeyboardButton (val text: String , val url: String ) : InlineKeyboardButton
Content copied to clipboard

Simple url button. Can be forwarded in any chat with message in case if it is the only one button in message

WebAppInlineKeyboardButton
Link copied to clipboard
data class WebAppInlineKeyboardButton (val text: String , val webApp: WebAppInfo ) : InlineKeyboardButton
Content copied to clipboard

Button with WebAppInfo. Web App will be launched when the button is pressed. The Web App will be able to send a `web_app_data` service message. Available in private chats only.