InlineKeyboardMarkup

@Serializable
data class InlineKeyboardMarkup(val keyboard: Matrix<InlineKeyboardButton>, val forceReply: Boolean? = null) : KeyboardMarkup(source)

Constructors

Link copied to clipboard
constructor(keyboard: Matrix<InlineKeyboardButton>, forceReply: Boolean? = null)

Properties

Link copied to clipboard
@SerialName(value = "force_reply")
val forceReply: Boolean?

Requests a reply interface for the message. Telegram does not allow changing this value when editing the inline keyboard.

Link copied to clipboard
@SerialName(value = "inline_keyboard")
val keyboard: Matrix<InlineKeyboardButton>

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T> KeyboardMarkup.ifReplyForce(block: (ReplyForce) -> T): T?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun InlineKeyboardMarkup.modified(forceReply: Boolean? = this.forceReply, block: InlineKeyboardBuilder.() -> Unit): InlineKeyboardMarkup

Factory-function for InlineKeyboardBuilder. It will apply to internally created InlineKeyboardMarkup and InlineKeyboardBuilder.build then

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T> KeyboardMarkup.whenForceReply(block: (ReplyForce) -> T): T?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard