struct

Telegram::KeyboardButton

Inherits JSON::Serializable < Struct < Value < Object

Telegram API type: KeyboardButton This object represents one button of the reply keyboard. At most one of the optional fields must be used to specify type of the button. For simple text buttons, String can be used instead of this object to specify the button text. Note: request_users and request_chat options will only work in Telegram versions released after 3 February, 2023. Older clients will display unsupported message.

Constructors

new(text : String, request_users : KeyboardButtonRequestUsers | 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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
copy_with(text _text = @text, request_users _request_users = @request_users, request_chat _request_chat = @request_chat, request_contact _request_contact = @request_contact, request_location _request_location = @request_location, request_poll _request_poll = @request_poll, web_app _web_app = @web_app)
Source
request_chat
request_contact
request_location
request_poll
request_users
text
web_app