Reputation: 1
how to program on telethon when clicking on the phone number showed the telegram id. help please I'm new to telethon. Can anyone give me some advice? how to program on telethon when clicking on the phone number showed the telegram id. help please I'm new to telethon. Can anyone give me some advice? image1 image2
source code program in python
Upvotes: 0
Views: 30
Reputation: 11
from telethon.tl.functions.contacts import ResolvePhoneRequest
print((await client(ResolvePhoneRequest(phonenomber))).stringify())
Upvotes: 1