Contact#
- class aiogram.types.contact.Contact(*, phone_number: str, first_name: str, last_name: Optional[str] = None, user_id: Optional[int] = None, vcard: Optional[str] = None, **extra_data: Any)[source]#
This object represents a phone contact.
Source: https://core.telegram.org/bots/api#contact
- phone_number: str#
Contact’s phone number
- first_name: str#
Contact’s first name
- last_name: Optional[str]#
Optional. Contact’s last name
- user_id: Optional[int]#
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.