Skip to content

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

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

Direct known subclasses

Tourmaline::Client::InlineKeyboardMarkupBuilder Tourmaline::Client::ReplyKeyboardMarkupBuilder

Constructors#

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

View source

Class methods#

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

View source

.buttons(buttons, **options) #

View source

.force_reply(value : Bool) #

View source

.inline_buttons(buttons, **options) #

View source

.one_time(value : Bool) #

View source

.remove_keyboard(value : Bool) #

View source

.resize(value : Bool) #

View source

.selective(value : Bool) #

View source

Methods#

#button(*args, **options) #

View source

#force_reply(value) #

View source

#force_reply=(force_reply : Bool) #

View source

#force_reply? : Bool #

View source

#input_field_placeholder : String? #

View source

#input_field_placeholder(value) #

View source

#input_field_placeholder=(input_field_placeholder : String?) #

View source

abstract #keyboard(columns = nil) : G #

View source

#one_time(value) #

View source

#one_time=(one_time : Bool) #

View source

#one_time? : Bool #

View source

#persistent=(persistent : Bool) #

View source

#persistent? : Bool #

View source

#remove_keyboard(value) #

View source

#remove_keyboard=(remove_keyboard : Bool) #

View source

#remove_keyboard? : Bool #

View source

#resize(value) #

View source

#resize=(resize : Bool) #

View source

#resize? : Bool #

View source

#selective(value) #

View source

#selective=(selective : Bool) #

View source

#selective? : Bool #

View source