class TelegramBot::ReplyKeyboardMarkup
- TelegramBot::ReplyKeyboardMarkup
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram_bot/types/reply_keyboard_markup.crConstructors
- .new(pull : JSON::PullParser)
- .new(keyboard : Array(Array(KeyboardButton)), *, resize_keyboard : Bool | Nil = nil, one_time_keyboard : Bool | Nil = nil, selective : Bool | Nil = nil)
-
.new(keyboard : Array(Array(String)), *, resize_keyboard : Bool | Nil = nil, one_time_keyboard : Bool | Nil = nil, selective : Bool | Nil = nil)
Alternative constructor that allows to build markup object with text-only buttons
Instance Method Summary
- #keyboard : Array(Array(KeyboardButton))
- #keyboard=(keyboard : Array(Array(KeyboardButton)))
- #one_time_keyboard=(one_time_keyboard : Bool | Nil)
- #one_time_keyboard? : Bool | Nil
- #resize_keyboard=(resize_keyboard : Bool | Nil)
- #resize_keyboard? : Bool | Nil
- #selective=(selective : Bool | Nil)
- #selective? : Bool | Nil
Constructor Detail
def self.new(keyboard : Array(Array(KeyboardButton)), *, resize_keyboard : Bool | Nil = nil, one_time_keyboard : Bool | Nil = nil, selective : Bool | Nil = nil)
#
def self.new(keyboard : Array(Array(String)), *, resize_keyboard : Bool | Nil = nil, one_time_keyboard : Bool | Nil = nil, selective : Bool | Nil = nil)
#
Alternative constructor that allows to build markup object with text-only buttons