pyrofork: Adapt filters.forwarded to latest changes

Signed-off-by: wulan17 <wulan17@komodos.id>
This commit is contained in:
wulan17 2025-04-09 19:14:08 +07:00
parent 3a632d4590
commit 4a8e73fc97
No known key found for this signature in database
GPG key ID: 737814D4B5FF0420

View file

@ -1,3 +1,4 @@
# Pyrofork - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-present Dan <https://github.com/delivrance>
# Copyright (C) 2022-present Mayuri-Chan <https://github.com/Mayuri-Chan>
@ -250,7 +251,7 @@ react = create(reaction_filter)
# region forwarded_filter
async def forwarded_filter(_, __, m: Message):
return bool(m.forward_date)
return bool(m.forward_origin)
forwarded = create(forwarded_filter)