Abror Aliyev
Abror Aliyev

Reputation: 1

telegram telethon. when clicking on a phone number how to show telegram id

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

Answers (1)

Seeya
Seeya

Reputation: 11

from telethon.tl.functions.contacts import ResolvePhoneRequest

print((await client(ResolvePhoneRequest(phonenomber))).stringify())

Upvotes: 1

Related Questions