pyrofork: types: MessageReactor: fix derps

Signed-off-by: wulan17 <wulan17@komodos.id>
This commit is contained in:
wulan17 2025-03-30 22:12:55 +07:00
parent aac5425334
commit b6fdbb0a07
No known key found for this signature in database
GPG key ID: 737814D4B5FF0420

View file

@ -80,12 +80,12 @@ class MessageReactor(Object):
from_user = None from_user = None
sender_chat = None sender_chat = None
if not is_anonymous: 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( from_user = types.User._parse(
client, client,
users.get(message_reactor.peer_id.user_id) 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( sender_chat = types.Chat._parse_channel_chat(
client, client,
chats.get(message_reactor.peer_id.channel_id) chats.get(message_reactor.peer_id.channel_id)