Answer the question
In order to leave comments, you need to log in
Why doesn't pyrogram add a contact?
There is the following code:
from pyrogram import Client, filters
from pyrogram.types import InputPhoneContact
api_id = 12345678
api_hash = "aaaassdddd1234"
app = Client("number", api_id=api_id, api_hash=api_hash)
with app:
app.import_contacts([InputPhoneContact("9001234567", "test")])
contacts = app.get_contacts()
print(contacts)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question