2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 05:18:10 +00:00

Clean Contact type

This commit is contained in:
Dan 2018-04-24 15:04:25 +02:00
parent 76980ffc96
commit d10326605f

View File

@ -37,11 +37,10 @@ class Contact(Object):
user_id (``int`` ``32-bit``, optional): user_id (``int`` ``32-bit``, optional):
Contact's user identifier in Telegram. Contact's user identifier in Telegram.
""" """
ID = 0xb0700011 ID = 0xb0700011
def __init__(self, phone_number, first_name, last_name=None, user_id=None): def __init__(self, phone_number: str, first_name: str, last_name: str = None, user_id=None):
self.phone_number = phone_number # string self.phone_number = phone_number # string
self.first_name = first_name # string self.first_name = first_name # string
self.last_name = last_name # flags.0?string self.last_name = last_name # flags.0?string