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

unpack requires a buffer of 271 bytes #40

Open
janis-mueller opened this issue May 1, 2024 · 0 comments
Open

unpack requires a buffer of 271 bytes #40

janis-mueller opened this issue May 1, 2024 · 0 comments

Comments

@janis-mueller
Copy link

janis-mueller commented May 1, 2024

python3 -m bot
[INFO] Loaded config.toml
[INFO] Initalizing bot...
[INFO] Monitored chats: -1001974992618
[INFO] Chats map: {-xxxxxxx: {'to': {-yyyyy}, 'replace': None}}
[INFO] Bot Started
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/user/telegram-message-forwarder-bot/bot/main.py", line 66, in
app.run()
File "/home/user/venv/lib/python3.11/site-packages/pyrogram/methods/utilities/run.py", line 84, in run
self.start()
File "/home/user/venv/lib/python3.11/site-packages/pyrogram/sync.py", line 66, in async_to_sync_wrap
return loop.run_until_complete(coroutine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/user/venv/lib/python3.11/site-packages/pyrogram/methods/utilities/start.py", line 58, in start
is_authorized = await self.connect()
^^^^^^^^^^^^^^^^^^^^
File "/home/user/venv/lib/python3.11/site-packages/pyrogram/methods/auth/connect.py", line 40, in connect
await self.load_session()
File "/home/user/venv/lib/python3.11/site-packages/pyrogram/client.py", line 616, in load_session
await self.storage.open()
File "/home/user/venv/lib/python3.11/site-packages/pyrogram/storage/memory_storage.py", line 59, in open
dc_id, api_id, test_mode, auth_key, user_id, is_bot = struct.unpack(
^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 271 bytes
`

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