danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.76k stars 619 forks source link

How to get Authorization info for importAuthorization function from tdata folder? #1414

Closed vladlen-beilik closed 8 months ago

vladlen-beilik commented 10 months ago

Hi. I'm using MadelineProto v8 and I need to import authorization from tdata folder. Maybe it need to be converted to some json or something else. Thanks in advance for the tips.

danog commented 10 months ago

MadelineProto offers conversion tools for pyrogram and telethon sessions in https://github.com/danog/MadelineProto/blob/v8/src/Conversion.php, however the tdesktop converter is currently outdated, feel free to submit a PR to fix it up!

danog commented 8 months ago

Closing this for now, I don't really plan to refactor that part of the code anytime soon, but if anyone wants to give it a go I'd be more than glad to merge a PR!