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

Types

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

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.CallbackQuery.DataCallbackQuery

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

Button with callbackGame

InlineKeyboardButton
Link copied to clipboard
interface InlineKeyboardButton

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>
LoginURLInlineKeyboardButton
Link copied to clipboard
data class LoginURLInlineKeyboardButton(text: String, loginUrl: LoginURL) : InlineKeyboardButton

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

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

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

data class SwitchInlineQueryCurrentChatInlineKeyboardButton(text: String, switchInlineQueryCurrentChat: String) : InlineKeyboardButton

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(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

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

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