Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaGusev committed Jul 8, 2024
1 parent 942ea34 commit 6d0c724
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ async def get_count(self, message: Message) -> None:
user_id = message.from_user.id
chat_id = message.chat.id
model = self.db.get_current_model(chat_id)
if model not in self.providers:
await message.reply(self.localization.MODEL_NOT_SUPPORTED)
return
remaining_count = self._count_remaining_messages(user_id=user_id, model=model)
text = self.localization.REMAINING_MESSAGES.format(model=model, remaining_count=remaining_count)
await message.reply(text)
Expand Down

0 comments on commit 6d0c724

Please sign in to comment.