From 000cd9aad8179212c775d56ee15a0483449635a3 Mon Sep 17 00:00:00 2001 From: Arwichok Date: Mon, 23 Sep 2019 16:24:33 +0300 Subject: [PATCH] Update aiogram/dispatcher/filters/builtin.py Co-Authored-By: Alex Root Junior --- aiogram/dispatcher/filters/builtin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/dispatcher/filters/builtin.py b/aiogram/dispatcher/filters/builtin.py index a95ecf52..d11a7e35 100644 --- a/aiogram/dispatcher/filters/builtin.py +++ b/aiogram/dispatcher/filters/builtin.py @@ -639,5 +639,5 @@ class IsReplyFilter(BoundFilter): async def check(self, msg: 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: + elif not msg.reply_to_message and not self.is_reply: return True