abstract class Tourmaline::KeyboardBuilder(T, G)
- Tourmaline::KeyboardBuilder(T, G)
- Reference
- Object
Overview
Base builder class for InlineKeyboardMarkup::Builder
and
ReplyKeyboardMarkup::Builder
.
Direct Known Subclasses
Defined in:
tourmaline/keyboard_builder.crConstructors
Class Method Summary
- .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)
Instance Method Summary
- #button(*args, **options)
- #force_reply(value : Bool)
- #force_reply : Bool
- #force_reply=(force_reply : Bool)
- #input_field_placeholder(value : Nil | String)
- #input_field_placeholder : String | Nil
- #input_field_placeholder=(input_field_placeholder : String | Nil)
- #keyboard(columns = nil) : G
- #one_time(value : Bool)
- #one_time : Bool
- #one_time=(one_time : Bool)
- #remove_keyboard(value : Bool)
- #remove_keyboard : Bool
- #remove_keyboard=(remove_keyboard : Bool)
- #resize(value : Bool)
- #resize : Bool
- #resize=(resize : Bool)
- #selective(value : Bool)
- #selective : Bool
- #selective=(selective : Bool)
Constructor Detail
def self.new(force_reply : Bool = false, remove_keyboard : Bool = false, selective : Bool = false, keyboard : Array(T) = [] of T, resize : Bool = false, one_time : Bool = false, input_field_placeholder : Nil | String = nil)
#