mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Update Filters.reply to check for Message.reply_to_message_id
This commit is contained in:
parent
bca7e6461e
commit
bf233e3b5b
@ -218,7 +218,7 @@ text = create(text_filter)
|
|||||||
|
|
||||||
# region reply_filter
|
# region reply_filter
|
||||||
async def reply_filter(_, __, m: Message):
|
async def reply_filter(_, __, m: Message):
|
||||||
return bool(m.reply_to_message)
|
return bool(m.reply_to_message_id)
|
||||||
|
|
||||||
|
|
||||||
reply = create(reply_filter)
|
reply = create(reply_filter)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user