class Tourmaline::KeyboardButton
- Tourmaline::KeyboardButton
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
tourmaline/models/keyboard_button.crConstructors
- .new(pull : JSON::PullParser)
- .new(text : String, request_user : KeyboardButtonRequestUser | Nil = nil, request_chat : KeyboardButtonRequestChat | Nil = nil, request_contact : Bool | Nil = nil, request_location : Bool | Nil = nil, request_poll : KeyboardButtonPollType | Nil = nil, web_app : WebAppInfo | Nil = nil)
Instance Method Summary
- #request_chat : KeyboardButtonRequestChat | Nil
- #request_chat=(request_chat : KeyboardButtonRequestChat | Nil)
- #request_contact : Bool | Nil
- #request_contact=(request_contact : Bool | Nil)
- #request_location : Bool | Nil
- #request_location=(request_location : Bool | Nil)
- #request_poll : KeyboardButtonPollType | Nil
- #request_poll=(request_poll : KeyboardButtonPollType | Nil)
- #request_user : KeyboardButtonRequestUser | Nil
- #request_user=(request_user : KeyboardButtonRequestUser | Nil)
- #text : String
- #text=(text : String)
- #web_app : WebAppInfo | Nil
- #web_app=(web_app : WebAppInfo | Nil)
Constructor Detail
def self.new(text : String, request_user : KeyboardButtonRequestUser | Nil = nil, request_chat : KeyboardButtonRequestChat | Nil = nil, request_contact : Bool | Nil = nil, request_location : Bool | Nil = nil, request_poll : KeyboardButtonPollType | Nil = nil, web_app : WebAppInfo | Nil = nil)
#