2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 21:07:59 +00:00

Update vcard docstrings for Contact type and send_contact method

This commit is contained in:
Dan 2018-08-15 22:33:01 +02:00
parent 49e2e529e1
commit 6879a4da9b
2 changed files with 7 additions and 7 deletions

View File

@ -48,7 +48,7 @@ class SendContact(BaseClient):
Contact's last name. Contact's last name.
vcard (``str``, *optional*): vcard (``str``, *optional*):
Contact's vCard information. Additional data about the contact in the form of a vCard, 0-2048 bytes
disable_notification (``bool``, *optional*): disable_notification (``bool``, *optional*):
Sends the message silently. Sends the message silently.

View File

@ -32,11 +32,11 @@ class Contact(Object):
last_name (``str``, *optional*): last_name (``str``, *optional*):
Contact's last name. Contact's last name.
vcard (``str``, *optional*):
Contact's vCard.
user_id (``int``, *optional*): user_id (``int``, *optional*):
Contact's user identifier in Telegram. Contact's user identifier in Telegram.
vcard (``str``, *optional*):
Additional data about the contact in the form of a vCard
""" """
ID = 0xb0700011 ID = 0xb0700011
@ -46,11 +46,11 @@ class Contact(Object):
phone_number: str, phone_number: str,
first_name: str, first_name: str,
last_name: str = None, last_name: str = None,
vcard: str = None, user_id: int = None,
user_id: int = None vcard: str = None
): ):
self.phone_number = phone_number self.phone_number = phone_number
self.first_name = first_name self.first_name = first_name
self.last_name = last_name self.last_name = last_name
self.vcard = vcard
self.user_id = user_id self.user_id = user_id
self.vcard = vcard