Skip to content

Commit

Permalink
turn on filter on users without prev messages without db
Browse files Browse the repository at this point in the history
  • Loading branch information
da-maltsev committed Jul 5, 2023
1 parent 6ca3bb7 commit b636840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class HasNoValidPreviousMessages(MessageFilter):

def filter(self, message: Message) -> bool:
if not DB_ENABLED():
return False
return True

return self.has_no_valid_previous_messages(user_id=message.from_user.id, chat_id=message.chat_id)

Expand Down

0 comments on commit b636840

Please sign in to comment.