ReplyKeyboardBuilder

class ReplyKeyboardBuilder : MatrixBuilder<KeyboardButton>

Core DSL part of Keyboard DSL. Can accept only KeyboardButton and returns ready to use ReplyKeyboardMarkup via build method

See also

Constructors

ReplyKeyboardBuilder
Link copied to clipboard
fun ReplyKeyboardBuilder()

Functions

add
Link copied to clipboard
fun add(t: List<KeyboardButton>): Boolean
build
Link copied to clipboard
fun build(resizeKeyboard: Boolean? = null, oneTimeKeyboard: Boolean? = null, inputFieldPlaceholder: String? = null, selective: Boolean? = null): ReplyKeyboardMarkup

Creates InlineKeyboardMarkup using internal matrix

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

Properties

matrix
Link copied to clipboard
val matrix: Matrix<KeyboardButton>

Extensions

row
Link copied to clipboard
inline fun ReplyKeyboardBuilder.row(crossinline block: ReplyKeyboardRowBuilder.() -> Unit): Boolean

Creates an ReplyKeyboardRowBuilder and apply with this builder