From 7ee8cb705934cec9940dc3940cbf2b843f426ff7 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 21 Feb 2018 13:44:12 +0100 Subject: [PATCH] Document InputPhoneNumber --- pyrogram/client/input_phone_contact.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pyrogram/client/input_phone_contact.py b/pyrogram/client/input_phone_contact.py index 5a8f16b2..002a3121 100644 --- a/pyrogram/client/input_phone_contact.py +++ b/pyrogram/client/input_phone_contact.py @@ -20,6 +20,20 @@ from pyrogram.api.types import InputPhoneContact as RawInputPhoneContact 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` + + Args: + phone (:obj:`str`): + Contact's phone number + + first_name (:obj:`str`): + Contact's first name + + last_name (:obj:`str`, optional): + Contact's last name + """ + def __new__(cls, phone: str, first_name: str, last_name: str = ""): return RawInputPhoneContact( client_id=0,