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

Unhandled exception on updates.py:513 new_message_handler #616

Open
sampk2002 opened this issue Jul 24, 2024 · 0 comments
Open

Unhandled exception on updates.py:513 new_message_handler #616

sampk2002 opened this issue Jul 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sampk2002
Copy link

[07/24/24 15:55:55] INFO Got difference for channel updates.py:371
1523523939 updates
INFO New message received in -1001523523939 live.py:26
[07/24/24 15:55:56] ERROR Unhandled exception on updates.py:513
new_message_handler
╭─ Traceback (most recent call las─╮
│ /venv/lib/python3.10/site-packag │
│ es/telethon/client/updates.py:49 │
│ 7 in _dispatch_update │
│ │
│ 494 │ │ │ │ continue │
│ 495 │ │ │ │
│ 496 │ │ │ try: │
│ ❱ 497 │ │ │ │ await call │
│ 498 │ │ │ except errors. │
│ 499 │ │ │ │ name = get │
│ 500 │ │ │ │ self._log[ │
│ │
│ /venv/lib/python3.10/site-packag │
│ es/tgcf/live.py:53 in │
│ new_message_handler │
│ │
│ 50 │ for d in dest: │
│ 51 │ │ if event.is_reply │
│ 52 │ │ │ tm.reply_to = │
│ ❱ 53 │ │ fwded_msg = await │
│ 54 │ │ st.stored[event_ui │
│ 55 │ tm.clear() │
│ 56 │
│ │
│ /venv/lib/python3.10/site-packag │
│ es/tgcf/utils.py:43 in │
│ send_message │
│ │
│ 40 │ │ ) │
│ 41 │ │ return message │
│ 42 │ tm.message.text = tm.te │
│ ❱ 43 │ return await client.sen │
│ 44 │
│ 45 │
│ 46 def cleanup(*files: str) -> │
│ │
│ /venv/lib/python3.10/site-packag │
│ es/telethon/client/messages.py:8 │
│ 42 in send_message │
│ │
│ 839 │ │ │ │
│ 840 │ │ │ if (message.m │
│ 841 │ │ │ │ │ messa │
│ ❱ 842 │ │ │ │ return aw │
│ 843 │ │ │ │ │ entit │
│ 844 │ │ │ │ │ messa │
│ 845 │ │ │ │ │ capti │
│ │
│ /venv/lib/python3.10/site-packag │
│ es/telethon/client/uploads.py:41 │
│ 2 in send_file │
│ │
│ 409 │ │ │ schedule_date= │
│ 410 │ │ │ background=bac │
│ 411 │ │ ) │
│ ❱ 412 │ │ return self._get_r │
│ 413 │ │
│ 414 │ async def _send_album( │
│ 415 │ │ │ │ │ │ │
│ │
│ /venv/lib/python3.10/site-packag │
│ es/telethon/client/users.py:30 │
│ in call
│ │
│ 27 │
│ 28 class UserMethods: │
│ 29 │ async def call(sel │
│ flood_sleep_threshold=None │
│ ❱ 30 │ │ return await self. │
│ 31 │ │
│ 32 │ async def _call(self: │
│ flood_sleep_threshold=None │
│ 33 │ │ if flood_sleep_thr │
│ │
│ /venv/lib/python3.10/site-packag │
│ es/telethon/client/users.py:84 │
│ in call │
│ │
│ 81 │ │ │ │ │ else: │
│ 82 │ │ │ │ │ │ re │
│ 83 │ │ │ │ else: │
│ ❱ 84 │ │ │ │ │ result │
│ 85 │ │ │ │ │ self.s │
│ 86 │ │ │ │ │ self.

│ 87 │ │ │ │ │ return │
╰──────────────────────────────────╯
MediaEmptyError: The provided media
object is invalid or the current
account may not be able to send it
(such as games as users) (caused by
SendMediaRequest)
[07/24/24 16:06:16] INFO Got difference for account updates updates.py:302
[07/24/24 16:06:17] INFO Got difference for channel updates.py:371

@sampk2002 sampk2002 added the bug Something isn't working label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant