Telegram::InlineKeyboardButton
Inherits JSON::Serializable < Struct < Value < Object
Telegram API type: InlineKeyboardButton This object represents one button of an inline keyboard. Exactly one of the optional fields must be used to specify type of the button.
Constructors
new(text : String, url : String | Nil = nil, callback_data : String | Nil = nil, web_app : WebAppInfo | Nil = nil, login_url : LoginUrl | Nil = nil, switch_inline_query : String | Nil = nil, switch_inline_query_current_chat : String | Nil = nil, switch_inline_query_chosen_chat : SwitchInlineQueryChosenChat | Nil = nil, copy_text : CopyTextButton | Nil = nil, callback_game : CallbackGame | Nil = nil, pay : Bool | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
callback_data
callback_game
clone
Sourcecopy_text
copy_with(text _text = @text, url _url = @url, callback_data _callback_data = @callback_data, web_app _web_app = @web_app, login_url _login_url = @login_url, switch_inline_query _switch_inline_query = @switch_inline_query, switch_inline_query_current_chat _switch_inline_query_current_chat = @switch_inline_query_current_chat, switch_inline_query_chosen_chat _switch_inline_query_chosen_chat = @switch_inline_query_chosen_chat, copy_text _copy_text = @copy_text, callback_game _callback_game = @callback_game, pay _pay = @pay)
Sourcelogin_url
pay
switch_inline_query
switch_inline_query_chosen_chat
switch_inline_query_current_chat
text
url
web_app