pyrofork
pyrofork copied to clipboard
AttributeError: 'MessageReactor' object has no attribute 'peer'
Checklist
- [x] I am sure the error is coming from Pyrofork's code and not elsewhere
- [x] I have searched in the issue tracker for similar bug reports, including closed ones
- [x] I ran
pip3 install -U git+https://github.com/Mayuri-Chan/pyroforkand reproduced the issue using the latest development version
Description
While iterating over client.get_dialogs() I get an Attribute error.
Steps to reproduce
client_it = client.get_dialogs()
async for dialog in client_it:
...
Code example
Logs
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/slidge/util/util.py", line 323, in wrapped
r = await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/slidge/core/gateway.py", line 539, in login_wrap
await session.bookmarks.fill()
File "/venv/lib/python3.11/site-packages/legacy_module/group.py", line 54, in fill
async for dialog in dialog_it:
File "/venv/lib/python3.11/site-packages/pyrogram/methods/chats/get_dialogs.py", line 82, in get_dialogs
messages[chat_id] = await types.Message._parse(self, message, users, chats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/pyrogram/types/messages_and_media/message.py", line 1146, in _parse
reactions = types.MessageReactions._parse(client, message.reactions, users, chats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/pyrogram/types/messages_and_media/message_reactions.py", line 66, in _parse
top_reactors=[
^
File "/venv/lib/python3.11/site-packages/pyrogram/types/messages_and_media/message_reactions.py", line 67, in <listcomp>
types.MessageReactor._parse(client, reactor, users, chats)
File "/venv/lib/python3.11/site-packages/pyrogram/types/messages_and_media/message_reactor.py", line 83, in _parse
if isinstance(message_reactor.peer, raw.types.PeerUser):
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MessageReactor' object has no attribute 'peer'
update to 2.3.61