class
TelegramBot::KeyboardButton
- TelegramBot::KeyboardButton
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram_bot/types/reply_keyboard_markup.crConstructors
- .new(pull : JSON::PullParser)
- .new(text : String, *, icon_custom_emoji_id : String | Nil = nil, style : String | Nil = nil, request_users : KeyboardButtonRequestUsers | Nil = nil, request_chat : KeyboardButtonRequestChat | Nil = nil, request_managed_bot : KeyboardButtonRequestManagedBot | Nil = nil, request_contact : Bool | Nil = nil, request_location : Bool | Nil = nil, request_poll : KeyboardButtonPollType | Nil = nil, web_app : WebAppInfo | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #icon_custom_emoji_id : String | Nil
- #icon_custom_emoji_id=(icon_custom_emoji_id : String | Nil)
- #request_chat : KeyboardButtonRequestChat | Nil
- #request_chat=(request_chat : KeyboardButtonRequestChat | Nil)
- #request_contact=(request_contact : Bool | Nil)
- #request_contact? : Bool | Nil
- #request_location=(request_location : Bool | Nil)
- #request_location? : Bool | Nil
- #request_managed_bot : KeyboardButtonRequestManagedBot | Nil
- #request_managed_bot=(request_managed_bot : KeyboardButtonRequestManagedBot | Nil)
- #request_poll : KeyboardButtonPollType | Nil
- #request_poll=(request_poll : KeyboardButtonPollType | Nil)
- #request_users : KeyboardButtonRequestUsers | Nil
- #request_users=(request_users : KeyboardButtonRequestUsers | Nil)
- #style : String | Nil
- #style=(style : String | Nil)
- #text : String
- #text=(text : String)
- #web_app : WebAppInfo | Nil
- #web_app=(web_app : WebAppInfo | Nil)
Constructor Detail
def self.new(text : String, *, icon_custom_emoji_id : String | Nil = nil, style : String | Nil = nil, request_users : KeyboardButtonRequestUsers | Nil = nil, request_chat : KeyboardButtonRequestChat | Nil = nil, request_managed_bot : KeyboardButtonRequestManagedBot | Nil = nil, request_contact : Bool | Nil = nil, request_location : Bool | Nil = nil, request_poll : KeyboardButtonPollType | Nil = nil, web_app : WebAppInfo | Nil = nil)
#