Skip to content

Commit

Permalink
fixed new filter on no reply message
Browse files Browse the repository at this point in the history
  • Loading branch information
bomzheg committed Nov 23, 2023
1 parent 84380e2 commit d583752
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/filters/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class HasResolvedReport(BaseFilter):
async def __call__(
self, message: types.Message, chat: Chat, report_repo: ReportRepo
) -> bool:
if not message.reply_to_message:
return False
return await report_repo.has_resolved_report(
chat_id=chat.chat_id, message_id=message.reply_to_message.message_id
)

0 comments on commit d583752

Please sign in to comment.