class TelegramBot::KeyboardButton

Included Modules

Defined in:

telegram_bot/types/reply_keyboard_markup.cr

Constructors

Instance Method Summary

Constructor Detail

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

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) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

Instance Method Detail

def icon_custom_emoji_id : String | Nil #

def icon_custom_emoji_id=(icon_custom_emoji_id : String | Nil) #

def request_chat : KeyboardButtonRequestChat | Nil #

def request_chat=(request_chat : KeyboardButtonRequestChat | Nil) #

def request_contact=(request_contact : Bool | Nil) #

def request_contact? : Bool | Nil #

def request_location=(request_location : Bool | Nil) #

def request_location? : Bool | Nil #

def request_managed_bot : KeyboardButtonRequestManagedBot | Nil #

def request_managed_bot=(request_managed_bot : KeyboardButtonRequestManagedBot | Nil) #

def request_poll : KeyboardButtonPollType | Nil #

def request_poll=(request_poll : KeyboardButtonPollType | Nil) #

def request_users : KeyboardButtonRequestUsers | Nil #

def request_users=(request_users : KeyboardButtonRequestUsers | Nil) #

def style : String | Nil #

def style=(style : String | Nil) #

def text : String #

def text=(text : String) #

def web_app : WebAppInfo | Nil #

def web_app=(web_app : WebAppInfo | Nil) #