From 615b5af00f69ac8acf16fad010eef9352dc8a271 Mon Sep 17 00:00:00 2001 From: Arwichok Date: Mon, 16 Sep 2019 15:47:31 +0300 Subject: [PATCH] reply True if msg == None and is_reply == False --- aiogram/dispatcher/filters/builtin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aiogram/dispatcher/filters/builtin.py b/aiogram/dispatcher/filters/builtin.py index cec9ff1b..a95ecf52 100644 --- a/aiogram/dispatcher/filters/builtin.py +++ b/aiogram/dispatcher/filters/builtin.py @@ -637,5 +637,7 @@ class IsReplyFilter(BoundFilter): self.is_reply = is_reply async def check(self, msg: Message): - if msg.reply_to_message: + if msg.reply_to_message and self.is_reply: return {'reply': msg.reply_to_message} + elif msg.reply_to_message is None and self.is_reply is False: + return True