Skip to content

Commit fd92cc8

Browse files
committed
BugFix: Reaction filter added again, removed by mistake during code synchronization.
1 parent ad764dd commit fd92cc8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pyrogram/filters.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,15 @@ async def reply_filter(_, __, m: Message):
226226
"""Filter messages that are replies to other messages."""
227227

228228

229+
# region reaction_filter
230+
async def reaction_filter(_, __, m: Message):
231+
return bool(m.edit_hide)
232+
233+
234+
reaction = create(reaction_filter)
235+
"""Filter reactions."""
236+
237+
229238
# endregion
230239

231240
# region forwarded_filter
@@ -731,6 +740,7 @@ async def linked_channel_filter(_, __, m: Message):
731740
linked_channel = create(linked_channel_filter)
732741
"""Filter messages that are automatically forwarded from the linked channel to the group chat."""
733742

743+
734744
# endregion
735745

736746

0 commit comments

Comments
 (0)