mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 23:24:50 +00:00
Clean Contact type
This commit is contained in:
parent
76980ffc96
commit
d10326605f
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue