class Tourmaline::Contact
- Tourmaline::Contact
- Reference
- Object
Overview
This object represents a phone contact.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(phone_number : String, first_name : String, last_name : String | Nil = nil, user_id : Int32 | Int64 | Nil = nil, vcard : String | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#first_name : String
Contact's first name
-
#first_name=(first_name : String)
Contact's first name
-
#last_name : String | Nil
Optional.
-
#last_name=(last_name : String | Nil)
Optional.
-
#phone_number : String
Contact's phone number
-
#phone_number=(phone_number : String)
Contact's phone number
-
#user_id : Int32 | Int64 | Nil
Optional.
-
#user_id=(user_id : Int32 | Int64 | Nil)
Optional.
-
#vcard : String | Nil
Optional.
-
#vcard=(vcard : String | Nil)
Optional.
Constructor Detail
Instance Method Detail
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.
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.
Optional. Additional data about the contact in the form of a vCard