class Tourmaline::KeyboardButton
- Tourmaline::KeyboardButton
- Reference
- Object
Included Modules
- JSON::Serializable
- Tourmaline::Model
Defined in:
tourmaline/models/reply_keyboard_markup.crConstructors
- .new(pull : JSON::PullParser)
- .new(text : String, request_contact : Bool = false, request_location : Bool = false, request_poll : Nil | Tourmaline::KeyboardButtonPollType = nil, web_app : Nil | Tourmaline::WebAppInfo = nil)
Instance Method Summary
- #request_contact : Bool
- #request_contact=(request_contact : Bool)
- #request_location : Bool
- #request_location=(request_location : Bool)
- #request_poll : KeyboardButtonPollType | Nil
- #request_poll=(request_poll : KeyboardButtonPollType | Nil)
- #text : String
- #text=(text : String)
- #web_app : WebAppInfo | Nil
- #web_app=(web_app : WebAppInfo | Nil)
Instance methods inherited from module Tourmaline::Model
client : Tourmaline::Client
client,
client=(client : Tourmaline::Client)
client=,
client? : Tourmaline::Client | Nil
client?,
finish_init(client : Tourmaline::Client)
finish_init
Constructor Detail
def self.new(text : String, request_contact : Bool = false, request_location : Bool = false, request_poll : Nil | Tourmaline::KeyboardButtonPollType = nil, web_app : Nil | Tourmaline::WebAppInfo = nil)
#