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

Peer id invalid #4

Closed
anikethjana1 opened this issue Aug 22, 2024 · 1 comment
Closed

Peer id invalid #4

anikethjana1 opened this issue Aug 22, 2024 · 1 comment

Comments

@anikethjana1
Copy link

LOGS:

Instance is healthy. All health checks are passing. [22/08/2024 06:58:54] {/app/.heroku/python/lib/python3.9/site-packages/pyrogram/dispatcher.py:366} ERROR - Peer id invalid: -1002229632110 Traceback (most recent call last): File "/app/.heroku/python/lib/python3.9/site-packages/pyrogram/methods/advanced/resolve_peer.py", line 62, in resolve_peer return await self.storage.get_peer_by_id(peer_id) File "/app/.heroku/python/lib/python3.9/site-packages/pyrogram/storage/sqlite_storage.py", line 195, in get_peer_by_id raise KeyError(f"ID not found: {peer_id}") KeyError: 'ID not found: -1002229632110' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/app/.heroku/python/lib/python3.9/site-packages/pyrogram/dispatcher.py", line 353, in handler_worker await handler.callback(self.client, *args) File "/workspace/WebStreamer/bot/plugins/stream.py", line 41, in private_receive_handler await get_file_ids(False, inserted_id, multi_clients) File "/workspace/WebStreamer/utils/file_properties.py", line 20, in get_file_ids log_msg=await send_file(StreamBot, file_info['file_id']) File "/workspace/WebStreamer/utils/file_properties.py", line 119, in send_file return await client.send_cached_media(Var.BIN_CHANNEL, file_id) File "/app/.heroku/python/lib/python3.9/site-packages/pyrogram/methods/messages/send_cached_media.py", line 136, in send_cached_media peer = await self.resolve_peer(chat_id) File "/app/.heroku/python/lib/python3.9/site-packages/pyrogram/methods/advanced/resolve_peer.py", line 89, in resolve_peer peer_type = utils.get_peer_type(peer_id) File "/app/.heroku/python/lib/python3.9/site-packages/pyrogram/utils.py", line 345, in get_peer_type raise ValueError(f"Peer id invalid: {peer_id}") ValueError: Peer id invalid: -1002229632110

ONLY REQUIRED VARS ADDED , OPTIONAL SKIPPED.
image

@DeekshithSH
Copy link
Collaborator

DeekshithSH commented Aug 22, 2024

If I am not wrong It was happening because pyrogram used in this repository is old

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

2 participants