class TelegramBot::ReplyKeyboardMarkup
- TelegramBot::ReplyKeyboardMarkup
- Reference
- Object
Defined in:
telegram_bot/types/reply_keyboard_markup.crConstant Summary
-
FIELDS =
{keyboard: Array(Array(KeyboardButton)), resize_keyboard: {type: Bool, nilable: true}, one_time_keyboard: {type: Bool, nilable: true}, selective: {type: Bool, nilable: true}}
Constructors
- .new(__temp_936 : 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 : Bool | Nil
- #one_time_keyboard=(_one_time_keyboard : Bool | Nil)
- #resize_keyboard : Bool | Nil
- #resize_keyboard=(_resize_keyboard : Bool | Nil)
- #selective : Bool | Nil
- #selective=(_selective : Bool | Nil)
- #to_json(json : JSON::Builder)
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