pyrofork: Adapt filters.linked_channel to latest changes

Signed-off-by: wulan17 <wulan17@komodos.id>
This commit is contained in:
wulan17 2025-07-10 19:06:17 +07:00
parent 36e3eca8b3
commit 0dedc9790c
No known key found for this signature in database
GPG key ID: 737814D4B5FF0420

View file

@ -796,7 +796,7 @@ from_scheduled = create(from_scheduled_filter)
# region linked_channel_filter
async def linked_channel_filter(_, __, m: Message):
return bool(m.forward_from_chat and not m.from_user)
return bool((m.forward_origin and m.forward_origin.chat) and not m.from_user)
linked_channel = create(linked_channel_filter)