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 switch to tdata. Do not use telethons #3

Closed 97taytrang closed 5 months ago

97taytrang commented 9 months ago

Thank you very much for writing this library. I want to convert it to tdata, is there any way?

amao12580 commented 6 months ago

I can do this.

batreller commented 6 months ago

Hi, yes there is a way to do it, you would want to read this https://github.com/thedemons/opentele/blob/main/docs/examples/convert-telethon-to-tdata.md

Since you extracted auth key you are able to convert session to any possible telegram's format

amao12580 commented 6 months ago

Hi, yes there is a way to do it, you would want to read this https://github.com/thedemons/opentele/blob/main/docs/examples/convert-telethon-to-tdata.md

Since you extracted auth key you are able to convert session to any possible telegram's format

I'm glad you found the OpenTele library, but unfortunately, its dependency library is still Telethon, so you can't avoid using Telethon

batreller commented 5 months ago

Hi, functionality that you need has been implemented in new version of AndroidTelePorter, I suggest you reading new documentation as it will answer all your questions.