From 3f163901930d16c48cb1fef8bed84f4c2b6bee4b Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 11 Apr 2018 15:16:29 +0200 Subject: [PATCH] Update docstrings --- pyrogram/client/input_phone_contact.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/input_phone_contact.py b/pyrogram/client/input_phone_contact.py index 9268ca0a..5d5f9f96 100644 --- a/pyrogram/client/input_phone_contact.py +++ b/pyrogram/client/input_phone_contact.py @@ -22,7 +22,7 @@ from pyrogram.session.internals import MsgId class InputPhoneContact: """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: phone (:obj:`str`): @@ -35,6 +35,9 @@ class InputPhoneContact: 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 = ""): return RawInputPhoneContact( client_id=MsgId(),