Skip to content

Commit

Permalink
don't mark read on interactive events
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Sep 19, 2023
1 parent c0a44aa commit 4dd6522
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions daras_ai_v2/bots.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ def _on_msg(bot: BotInterface):
if not bot.page_cls:
bot.send_msg(text=PAGE_NOT_CONNECTED_ERROR)
return
# mark message as read
bot.mark_read()
if bot.input_type != "interactive":
# mark message as read
bot.mark_read()
# get the attached billing account
billing_account_user = AppUser.objects.get_or_create_from_uid(
bot.billing_account_uid
Expand Down

0 comments on commit 4dd6522

Please sign in to comment.