mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Added edited filter
This commit is contained in:
parent
a88ae52938
commit
797d7330cb
1 changed files with 6 additions and 0 deletions
|
|
@ -158,6 +158,12 @@ def create(func: Callable, name: str = None, **kwargs) -> Filter:
|
||||||
{"__call__": func, **kwargs}
|
{"__call__": func, **kwargs}
|
||||||
)()
|
)()
|
||||||
|
|
||||||
|
async def edited_filter(_, __, m: Message):
|
||||||
|
return bool(m.edit_date)
|
||||||
|
|
||||||
|
|
||||||
|
edited = create(edited_filter)
|
||||||
|
"""Filter edited messages."""
|
||||||
|
|
||||||
# region all_filter
|
# region all_filter
|
||||||
async def all_filter(_, __, ___):
|
async def all_filter(_, __, ___):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue