Add filters.react to filter react

This commit is contained in:
Yasir Aris M 2023-12-15 07:50:41 +07:00 committed by GitHub
parent e0039f2c69
commit 2a260d0d18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -234,6 +234,16 @@ reply = create(reply_filter)
"""Filter messages that are replies to other messages."""
# endregion
# region reaction_filter
async def reaction_filter(_, __, m: Message):
return bool(m.edit_hide)
react = create(reaction_filter)
"""Filter reactions."""
# endregion
# region forwarded_filter