mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
reply True if msg == None and is_reply == False
This commit is contained in:
parent
0365173450
commit
615b5af00f
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue