reply True if msg == None and is_reply == False

This commit is contained in:
Arwichok 2019-09-16 15:47:31 +03:00
parent 0365173450
commit 615b5af00f

View file

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