Package-level declarations

Types

Link copied to clipboard
@Serializable
data class CallbackDataInlineKeyboardButton(val text: String, val 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.queries.callback.DataCallbackQuery

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

Button with callbackGame

Link 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

Link copied to clipboard
@Serializable
data class LoginURLInlineKeyboardButton(val text: String, val loginUrl: LoginURL) : InlineKeyboardButton

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

Link copied to clipboard
@Serializable
data class PayInlineKeyboardButton(val 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

@Serializable
data class SwitchInlineQueryCurrentChatInlineKeyboardButton(val text: String, val 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

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

Link copied to clipboard
@Serializable
data class UnknownInlineKeyboardButton(val rawData: JsonElement) : InlineKeyboardButton
Link copied to clipboard
@Serializable
data class URLInlineKeyboardButton(val text: String, val 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

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

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.