struct

Telegram::InlineQueryResultContact

Inherits JSON::Serializable < Struct < Value < Object

Telegram API type: InlineQueryResultContact Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.

Constructors

new(type : String, id : String, phone_number : String, first_name : String, last_name : String | Nil = nil, vcard : String | Nil = nil, reply_markup : InlineKeyboardMarkup | Nil = nil, input_message_content : InputMessageContent | Nil = nil, thumbnail_url : String | Nil = nil, thumbnail_width : Int64 | Nil = nil, thumbnail_height : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
copy_with(type _type = @type, id _id = @id, phone_number _phone_number = @phone_number, first_name _first_name = @first_name, last_name _last_name = @last_name, vcard _vcard = @vcard, reply_markup _reply_markup = @reply_markup, input_message_content _input_message_content = @input_message_content, thumbnail_url _thumbnail_url = @thumbnail_url, thumbnail_width _thumbnail_width = @thumbnail_width, thumbnail_height _thumbnail_height = @thumbnail_height)
Source
first_name
id
input_message_content
last_name
phone_number
reply_markup
thumbnail_height
thumbnail_url
thumbnail_width
type
vcard