class

Tourmaline::InputContactMessageContent

Inherits JSON::Serializable / Reference / Object

Represents the content of a contact message to be sent as the result of an inline query.

Constructors

new(phone_number : String, first_name : String, last_name : String | Nil = nil, vcard : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

first_name

Contact's first name

Source
first_name=(first_name : String)

Contact's first name

Source
last_name

Optional. Contact's last name

Source
last_name=(last_name : String | Nil)

Optional. Contact's last name

Source
phone_number

Contact's phone number

Source
phone_number=(phone_number : String)

Contact's phone number

Source
vcard

Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes

Source
vcard=(vcard : String | Nil)

Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes

Source