mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
pyrofork: Adapt filters.forwarded to latest changes
Signed-off-by: wulan17 <wulan17@komodos.id>
This commit is contained in:
parent
3a632d4590
commit
4a8e73fc97
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue