MTPyroger/pyrogram/client/input_phone_contact.py
2018-02-20 15:01:28 +01:00

12 lines
353 B
Python

from pyrogram.api.types import InputPhoneContact as RawInputPhoneContact
class InputPhoneContact:
def __new__(cls, phone: str, first_name: str, last_name: str = ""):
return RawInputPhoneContact(
client_id=0,
phone="+" + phone.strip("+"),
first_name=first_name,
last_name=last_name
)