mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Clean Contact type
This commit is contained in:
parent
76980ffc96
commit
d10326605f
@ -37,11 +37,10 @@ class Contact(Object):
|
||||
|
||||
user_id (``int`` ``32-bit``, optional):
|
||||
Contact's user identifier in Telegram.
|
||||
|
||||
"""
|
||||
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.first_name = first_name # string
|
||||
self.last_name = last_name # flags.0?string
|
||||
|
Loading…
x
Reference in New Issue
Block a user