mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
11 lines
353 B
Python
11 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
|
|
)
|