Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: type object 'Storage' has no attribute 'SESSION_STRING_FORMAT_64'. Did you mean: 'SESSION_STRING_FORMAT'? #2

Open
Thomas-op opened this issue Nov 24, 2022 · 0 comments

Comments

@Thomas-op
Copy link

Try convert session file: C:\Users\danny\Desktop\Telethon-To-Pyrogram\Telethon\1.session
Traceback (most recent call last):
File "C:\Users\danny\Desktop\Telethon-To-Pyrogram\convertor.py", line 23, in pack_to_string
bytes_result: bytes = struct.pack(
struct.error: pack expected 6 items for packing (got 5)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\danny\Desktop\Telethon-To-Pyrogram\convertor.py", line 174, in
asyncio.run(start(args))
File "C:\Program Files\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete
return future.result()
File "C:\Users\danny\Desktop\Telethon-To-Pyrogram\convertor.py", line 165, in start
await convert(params)
File "C:\Users\danny\Desktop\Telethon-To-Pyrogram\convertor.py", line 91, in convert
session_string = pack_to_string(session_data, user_data)
File "C:\Users\danny\Desktop\Telethon-To-Pyrogram\convertor.py", line 33, in pack_to_string
Storage.SESSION_STRING_FORMAT_64,
AttributeError: type object 'Storage' has no attribute 'SESSION_STRING_FORMAT_64'. Did you mean: 'SESSION_STRING_FORMAT'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant