InlineKeyboardBuilder

class InlineKeyboardBuilder : MatrixBuilder<InlineKeyboardButton>

Core DSL part of Inline Keyboard DSL. Can accept only InlineKeyboardButton and returns ready to use InlineKeyboardMarkup via build method

See also

Constructors

InlineKeyboardBuilder
Link copied to clipboard
common
fun InlineKeyboardBuilder()

Functions

add
Link copied to clipboard
common
fun add(t: List<InlineKeyboardButton>): Boolean
build
Link copied to clipboard
common
fun build(): InlineKeyboardMarkup

Creates InlineKeyboardMarkup using internal matrix

plus
Link copied to clipboard
common
operator fun plus(t: List<InlineKeyboardButton>): Boolean
unaryPlus
Link copied to clipboard
common
operator fun InlineKeyboardButton.unaryPlus(): Boolean

Properties

matrix
Link copied to clipboard
common
val matrix: Matrix<InlineKeyboardButton>

Extensions

row
Link copied to clipboard
common
inline fun InlineKeyboardBuilder.row(crossinline block: InlineKeyboardRowBuilder.() -> Unit): Boolean

Creates an InlineKeyboardRowBuilder and apply with this builder