class

Tourmaline::KeyboardBuilder(T, G)

Inherits Reference / Object

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

Constructors

new(force_reply : Bool = false, remove_keyboard : Bool = false, selective : Bool = false, keyboard : Array(T) = [] of T, resize : Bool = false, one_time : Bool = false, persistent : Bool = false, input_field_placeholder : Nil | String = nil)
Source

Class methods

build_keyboard(buttons : Array(T), columns = 1, wrap = nil)
Source
buttons(buttons, **options)
Source
force_reply(value : Bool)
Source
inline_buttons(buttons, **options)
Source
one_time(value : Bool)
Source
remove_keyboard(value : Bool)
Source
resize(value : Bool)
Source
selective(value : Bool)
Source

Instance methods

button(*args, **options)
Source
force_reply(value : Bool)
Source
force_reply=(force_reply : Bool)
Source
force_reply?
Source
input_field_placeholder(value : Nil | String)
Source
input_field_placeholder
Source
input_field_placeholder=(input_field_placeholder : String | Nil)
Source
keyboard(columns = nil) : G
Source
one_time(value : Bool)
Source
one_time=(one_time : Bool)
Source
one_time?
Source
persistent=(persistent : Bool)
Source
persistent?
Source
remove_keyboard(value : Bool)
Source
remove_keyboard=(remove_keyboard : Bool)
Source
remove_keyboard?
Source
resize(value : Bool)
Source
resize=(resize : Bool)
Source
resize?
Source
selective(value : Bool)
Source
selective=(selective : Bool)
Source
selective?
Source