# dev.inmo.tgbotapi.types.buttons

docs

# Package dev.inmo.tgbotapi.types.buttons

## Types

InlineKeyboardMarkup
Link copied to clipboard
data class InlineKeyboardMarkup (val keyboard: Matrix < InlineKeyboardButton >) : KeyboardMarkup
Content copied to clipboard
KeyboardButton
Link copied to clipboard
interface KeyboardButton
Content copied to clipboard

Representation union of https://core.telegram.org/bots/api#keyboardbutton . See inheritors for more info

KeyboardButtonPollType
Link copied to clipboard
interface KeyboardButtonPollType
Content copied to clipboard

Poll type for RequestPollKeyboardButton. Visit https://core.telegram.org/bots/api#keyboardbuttonpolltype for more info and see inheritors.

KeyboardButtonPollTypeSerializer
Link copied to clipboard
object KeyboardButtonPollTypeSerializer : KSerializer< KeyboardButtonPollType >
Content copied to clipboard
KeyboardButtonSerializer
Link copied to clipboard
object KeyboardButtonSerializer : KSerializer< KeyboardButton >
Content copied to clipboard
KeyboardMarkup
Link copied to clipboard
interface KeyboardMarkup
Content copied to clipboard
KeyboardMarkupSerializer
Link copied to clipboard
object KeyboardMarkupSerializer : KSerializer< KeyboardMarkup >
Content copied to clipboard
Matrix
Link copied to clipboard
typealias Matrix < T > = List < List < T >>
Content copied to clipboard
QuizKeyboardButtonPollType
Link copied to clipboard
object QuizKeyboardButtonPollType : KeyboardButtonPollType
Content copied to clipboard

Quiz poll type

RegularKeyboardButtonPollType
Link copied to clipboard
object RegularKeyboardButtonPollType : KeyboardButtonPollType
Content copied to clipboard

Just a regular poll type

ReplyForce
Link copied to clipboard
data class ReplyForce (val selective: Boolean ? = null, val inputFieldPlaceholder: String ? = null) : KeyboardMarkup
Content copied to clipboard
ReplyKeyboardMarkup
Link copied to clipboard
data class ReplyKeyboardMarkup ( val keyboard: Matrix < KeyboardButton >, val resizeKeyboard: Boolean ? = null, val oneTimeKeyboard: Boolean ? = null, val inputFieldPlaceholder: String ? = null, val selective: Boolean ? = null) : KeyboardMarkup
Content copied to clipboard
ReplyKeyboardRemove
Link copied to clipboard
data class ReplyKeyboardRemove (val selective: Boolean ? = null) : KeyboardMarkup
Content copied to clipboard
RequestContactKeyboardButton
Link copied to clipboard
data class RequestContactKeyboardButton (val text: String ) : KeyboardButton
Content copied to clipboard

Private chats only. When user will tap on this button, his contact (with his number and name) will be sent to the bot. You will be able to catch this contact in updates and data using dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onContact in case you are using Behaviour Builder OR with dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter.messagesFlow and kotlinx.coroutines.flow.filterIsInstance and filtering by type dev.inmo.tgbotapi.types.message.abstracts.CommonMessage and dev.inmo.tgbotapi.extensions.utils.onlyContactContentMessages

RequestLocationKeyboardButton
Link copied to clipboard
data class RequestLocationKeyboardButton (val text: String ) : KeyboardButton
Content copied to clipboard

Private chats only. When user will tap on this button, his location will be sent to the bot. You will be able to catch this location in updates and data using dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onLocation in case you are using Behaviour Builder OR with dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter.messagesFlow and kotlinx.coroutines.flow.filterIsInstance and filtering by type dev.inmo.tgbotapi.types.message.abstracts.CommonMessage and dev.inmo.tgbotapi.extensions.utils.onlyLocationContentMessages

RequestPollKeyboardButton
Link copied to clipboard
data class RequestPollKeyboardButton (val text: String , val requestPoll: KeyboardButtonPollType ) : KeyboardButton
Content copied to clipboard

Private chats only. When user will tap on this button, he will be asked for the poll with requestPoll options. You will be able to catch this poll in updates and data using dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onPoll in case you are using Behaviour Builder OR with dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter.messagesFlow and kotlinx.coroutines.flow.filterIsInstance and filtering by type dev.inmo.tgbotapi.types.message.abstracts.CommonMessage and dev.inmo.tgbotapi.extensions.utils.onlyPollContentMessages

SimpleKeyboardButton
Link copied to clipboard
data class SimpleKeyboardButton (val text: String ) : KeyboardButton
Content copied to clipboard

Simple button. user will send text of this button. You will be able to catch this text in updates and data using dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onText in case you are using Behaviour Builder OR with dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter.messagesFlow and kotlinx.coroutines.flow.filterIsInstance and filtering by type dev.inmo.tgbotapi.types.message.abstracts.CommonMessage and dev.inmo.tgbotapi.extensions.utils.onlyTextContentMessages

UnknownKeyboardButton
Link copied to clipboard
data class UnknownKeyboardButton : KeyboardButton
Content copied to clipboard
UnknownKeyboardButtonPollType
Link copied to clipboard
class UnknownKeyboardButtonPollType : KeyboardButtonPollType
Content copied to clipboard
WebAppKeyboardButton
Link copied to clipboard
data class WebAppKeyboardButton (val text: String , val webApp: WebAppInfo ) : KeyboardButton
Content copied to clipboard

Private chats only. Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method `answerWebAppQuery`. Available only in private chats between a user and the bot.