class

Tourmaline::Contact

Inherits JSON::Serializable / Reference / Object

This object represents a phone contact.

Constructors

new(phone_number : String, first_name : String, last_name : String | Nil = nil, user_id : Int32 | Int64 | 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
user_id

Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.

Source
user_id=(user_id : Int32 | Int64 | Nil)

Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.

Source
vcard

Optional. Additional data about the contact in the form of a vCard

Source
vcard=(vcard : String | Nil)

Optional. Additional data about the contact in the form of a vCard

Source