Telethon find .session file phone number

Question:

I have already authorized .session file I forgot his number,
tried adding other account to contact,
tried changing privacy so I can see from other accs,
all with no success..
any suggestions ?

Asked By: Bali Cali

||

Answers:

Log in to the Telethon .session file normally and get the current user of the session:

user = await client.get_entity("me")
print(user.phone)
Answered By: MustA
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.