Traceback (most recent call last):
File "D:\Code\Personal\userbot\scripts\testing.py", line 57, in <module>
loop.run_until_complete(main())
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "D:\Code\Personal\userbot\scripts\testing.py", line 41, in main
async for action in client.get_chat_event_log(chat_id):
File "D:\Code\Personal\userbot\.venv\lib\site-packages\pyrogram\methods\chats\get_chat_event_log.py", line 104, in get_chat_event_log
yield await types.ChatEvent._parse(self, event, r.users, r.chats)
File "D:\Code\Personal\userbot\.venv\lib\site-packages\pyrogram\types\user_and_chats\chat_event.py", line 436, in _parse
if message.pinned:
AttributeError: 'MessageService' object has no attribute 'pinned'
Process finished with exit code 1
Fix edge-case when pinned action message is
MessageActionHistoryClear
.What I received inside raw action:
Error before following commit: