Skip to content

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

@Thomas-op

Description

@Thomas-op

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'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions