class TelegramBot::Models::KeyboardButton
- TelegramBot::Models::KeyboardButton
- TelegramBot::Models::Base
- Reference
- Object
Overview
https://core.telegram.org/bots/api#keyboardbutton
Defined in:
telegram_bot/models.crConstructors
-
.new(pull : JSON::PullParser)
https://core.telegram.org/bots/api#keyboardbutton
- .new(text : String, request_contact : Bool | Nil = nil, request_location : Bool | Nil = nil)
Instance Method Summary
- #request_contact : Bool | Nil
- #request_contact=(request_contact : Bool | Nil)
- #request_location : Bool | Nil
- #request_location=(request_location : Bool | Nil)
- #text : String
- #text=(text : String)
Constructor methods inherited from class TelegramBot::Models::Base
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(text : String, request_contact : Bool | Nil = nil, request_location : Bool | Nil = nil)
#