telegram.Contact¶
- class telegram.Contact(*args, **kwargs)[source]¶
Bases:
telegram.TelegramObject
This object represents a phone contact.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
phone_number
is equal.- Parameters
phone_number (
str
) – Contact’s phone number.first_name (
str
) – Contact’s first 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.