aiogram/aiogram/types/contact.py
Alex Root Junior 0e72d8e65b
[3.0] Bot API 5.1 + FSM + Utils (#525)
* Regenerate corresponding to Bot API 5.1

* Added base of FSM. Markup constructor and small refactoring

* Fix dependencies

* Fix mypy windows error

* Move StatesGroup.get_root() from meta to class

* Fixed chat and user constraints

* Update pipeline

* Remove docs pipeline

* Added GLOBAL_USER FSM strategy

* Reformat code

* Fixed Dispatcher._process_update

* Bump Bot API 5.2. Added integration with MagicFilter

* Coverage
2021-05-11 23:04:32 +03:00

24 lines
945 B
Python

from __future__ import annotations
from typing import Optional
from .base import TelegramObject
class Contact(TelegramObject):
"""
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] = None
"""*Optional*. Contact's last name"""
user_id: Optional[int] = None
"""*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."""
vcard: Optional[str] = None
"""*Optional*. Additional data about the contact in the form of a `vCard <https://en.wikipedia.org/wiki/VCard>`_"""