Skip to content

KeyboardBuilder

abstract class Tourmaline::KeyboardBuilder(T, G)
inherits Reference #

Base builder class for InlineKeyboardMarkup::Builder and ReplyKeyboardMarkup::Builder.

Direct known subclasses#

Tourmaline::InlineKeyboardMarkup::Builder Tourmaline::ReplyKeyboardMarkup::Builder

Class methods#

.build_keyboard(buttons : Array(T), columns = 1, wrap = nil) #

.buttons(buttons, **options) #

.force_reply(value : Bool) #

.inline_buttons(buttons, **options) #

.one_time(value : Bool) #

.remove_keyboard(value : Bool) #

.resize(value : Bool) #

.selective(value : Bool) #

.new(force_reply = false, remove_keyboard = false, selective = false, keyboard = [] of T, resize = false, one_time = false) #

Methods#

#button(*args, **options) #

#force_reply(value) #

#force_reply : Bool #

#force_reply=(force_reply : Bool) #

abstract #keyboard(columns = nil) : G #

#one_time(value) #

#one_time : Bool #

#one_time=(one_time : Bool) #

#remove_keyboard(value) #

#remove_keyboard : Bool #

#remove_keyboard=(remove_keyboard : Bool) #

#resize(value) #

#resize : Bool #

#resize=(resize : Bool) #

#selective(value) #

#selective : Bool #

#selective=(selective : Bool) #