mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 22:34:52 +00:00
Update docstrings
This commit is contained in:
parent
b5f1d3a2a5
commit
3f16390193
1 changed files with 4 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ from pyrogram.session.internals import MsgId
|
||||||
|
|
||||||
class InputPhoneContact:
|
class InputPhoneContact:
|
||||||
"""This object represents a Phone Contact to be added in your Telegram address book.
|
"""This object represents a Phone Contact to be added in your Telegram address book.
|
||||||
It is intended to be used with :obj:`pyrogram.Client.add_contacts`
|
It is intended to be used with :meth:`pyrogram.Client.add_contacts`
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
phone (:obj:`str`):
|
phone (:obj:`str`):
|
||||||
|
|
@ -35,6 +35,9 @@ class InputPhoneContact:
|
||||||
Contact's last name
|
Contact's last name
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def __init__(self, phone: str, first_name: str, last_name: str = ""):
|
||||||
|
pass
|
||||||
|
|
||||||
def __new__(cls, phone: str, first_name: str, last_name: str = ""):
|
def __new__(cls, phone: str, first_name: str, last_name: str = ""):
|
||||||
return RawInputPhoneContact(
|
return RawInputPhoneContact(
|
||||||
client_id=MsgId(),
|
client_id=MsgId(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue