batreller / AndroidTelePorter

Converts Android's telegram session into telethon / tdata session, can also be used to exctract any data from mobile session (auth key, dc id, user id and other)
MIT License
92 stars 28 forks source link

How to get session from Android source code? #4

Closed wereppnn closed 6 months ago

wereppnn commented 8 months ago

How to get session from Android source code?

batreller commented 8 months ago

Did you read README.md or comments in code? I suggest you to

"To convert the session all you need is just tgnet.dat file from the root directory of your telegram app on the phone, it's located at data/data/org.telegram.messenger.web, it can be extracted using ADB (Android Debug Bridge)"

But you might need root on your device