You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-8' coro=<Dispatcher._process_polling_updates() done, defined at %PROJECTDIR%/venv/lib/python3.9/site-packages/aiogram/dispatcher/dispatcher.py:409> exception=ValueError("Can't find `ChatMember` class for status `None`")>
Traceback (most recent call last):
File "%PROJECTDIR%/venv/lib/python3.9/site-packages/aiogram/dispatcher/dispatcher.py", line 417, in _process_polling_updates
for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
File "%PROJECTDIR%/venv/lib/python3.9/site-packages/aiogram/dispatcher/dispatcher.py", line 238, in process_updates
return await asyncio.gather(*tasks)
File "%PROJECTDIR%/venv/lib/python3.9/site-packages/aiogram/dispatcher/handler.py", line 116, in notify
response = await handler_obj.handler(*args, **partial_data)
File "%PROJECTDIR%/venv/lib/python3.9/site-packages/aiogram/dispatcher/dispatcher.py", line 309, in process_update
return await self.chat_member_handlers.notify(update.chat_member)
File "%PROJECTDIR%/venv/lib/python3.9/site-packages/aiogram/dispatcher/handler.py", line 116, in notify
response = await handler_obj.handler(*args, **partial_data)
File "%PROJECTDIR%/bot.py", line 12, in chat_member_handler
print(f"[{update.from_user.id}] {type(update.old_chat_member.resolve())} -> {type(update.new_chat_member.resolve())}")
File "%PROJECTDIR%/venv/lib/python3.9/site-packages/aiogram/types/chat_member.py", line 80, in resolve
raise ValueError(f"Can't find `ChatMember` class for status `{status}`")
ValueError: Can't find `ChatMember` class for status `None`
Steps to Reproduce
Run the code above (don't forget to put your own token)
Add bot to a group and make it admin
Restrict any chat member (e.g. revoke any permission from them)
The text was updated successfully, but these errors were encountered:
I tried to get type of ChatMember subclass (e.g. ChatMemberAdministrator, ChatMemberLeft etc.), however this code fails:
Exception:
Steps to Reproduce
The text was updated successfully, but these errors were encountered: