mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
pyrofork: types: MessageReactor: fix derps
Signed-off-by: wulan17 <wulan17@komodos.id>
This commit is contained in:
parent
aac5425334
commit
b6fdbb0a07
1 changed files with 5 additions and 5 deletions
|
|
@ -80,12 +80,12 @@ class MessageReactor(Object):
|
|||
from_user = None
|
||||
sender_chat = None
|
||||
if not is_anonymous:
|
||||
if isinstance(message_reactor.peer, raw.types.PeerUser):
|
||||
if isinstance(message_reactor.peer_id, raw.types.PeerUser):
|
||||
from_user = types.User._parse(
|
||||
client,
|
||||
users.get(message_reactor.peer_id.user_id)
|
||||
)
|
||||
elif isinstance(message_reactor.peer, raw.types.PeerChannel):
|
||||
elif isinstance(message_reactor.peer_id, raw.types.PeerChannel):
|
||||
sender_chat = types.Chat._parse_channel_chat(
|
||||
client,
|
||||
chats.get(message_reactor.peer_id.channel_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue