telegram.Contact¶
-
class
telegram.
Contact
(phone_number, first_name, last_name=None, user_id=None, vcard=None, **kwargs)¶ Bases:
telegram.base.TelegramObject
This object represents a phone contact.
-
phone_number
¶ str
– Contact’s phone number.
-
first_name
¶ str
– Contact’s first name.
-
last_name
¶ str
– Optional. Contact’s last name.
-
user_id
¶ int
– Optional. Contact’s user identifier in Telegram.
-
vcard
¶ str
– Optional. Additional data about the contact in the form of a vCard.
Parameters: - phone_number (
str
) – Contact’s phone number. - first_name (
str
) – Contact’s first name. - last_name (
str
, optional) – Contact’s last name. - user_id (
int
, optional) – Contact’s user identifier in Telegram. - vcard (
str
, optional) – Additional data about the contact in the form of a vCard. - **kwargs (
dict
) – Arbitrary keyword arguments.
-