class TelegramBot::ReplyKeyboardMarkup

Defined in:

telegram_bot/types/reply_keyboard_markup.cr

Constant 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

Instance Method Summary

Constructor Detail

def self.new(__temp_936 : JSON::PullParser) #

[View source]
def self.new(keyboard : Array(Array(KeyboardButton)), resize_keyboard : Bool | Nil = nil, one_time_keyboard : Bool | Nil = nil, selective : Bool | Nil = nil) #

[View source]
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


[View source]

Instance Method Detail

def keyboard : Array(Array(KeyboardButton)) #

[View source]
def keyboard=(_keyboard : Array(Array(KeyboardButton))) #

[View source]
def one_time_keyboard : Bool | Nil #

[View source]
def one_time_keyboard=(_one_time_keyboard : Bool | Nil) #

[View source]
def resize_keyboard : Bool | Nil #

[View source]
def resize_keyboard=(_resize_keyboard : Bool | Nil) #

[View source]
def selective : Bool | Nil #

[View source]
def selective=(_selective : Bool | Nil) #

[View source]
def to_json(json : JSON::Builder) #

[View source]