Added edited filter

This commit is contained in:
vpcreatz 2024-02-04 18:49:26 +05:30 committed by GitHub
parent a88ae52938
commit 797d7330cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(_, __, ___):