Update aiogram/dispatcher/filters/builtin.py

Co-Authored-By: Alex Root Junior <jroot.junior@gmail.com>
This commit is contained in:
Arwichok 2019-09-23 16:24:33 +03:00 committed by GitHub
parent 615b5af00f
commit 000cd9aad8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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