From a777b8ba816b3aa471bb7b1045f01dbfd5b14a5f Mon Sep 17 00:00:00 2001 From: KurimuzonAkuma Date: Sun, 18 Feb 2024 19:04:02 +0300 Subject: [PATCH] Update reply filter to work with stories --- pyrogram/filters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/filters.py b/pyrogram/filters.py index a61156cd..c49f7181 100644 --- a/pyrogram/filters.py +++ b/pyrogram/filters.py @@ -230,11 +230,11 @@ text = create(text_filter) # region reply_filter async def reply_filter(_, __, m: Message): - return bool(m.reply_to_message_id) + return bool(m.reply_to_message_id or m.reply_to_story_id) reply = create(reply_filter) -"""Filter messages that are replies to other messages.""" +"""Filter messages that are replies to other messages or stories.""" # endregion