From 4dd6522491de02407f6661f95cb10d0fd25aa296 Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Wed, 20 Sep 2023 03:04:22 +0530 Subject: [PATCH] don't mark read on interactive events --- daras_ai_v2/bots.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daras_ai_v2/bots.py b/daras_ai_v2/bots.py index cba91429d..c4410be86 100644 --- a/daras_ai_v2/bots.py +++ b/daras_ai_v2/bots.py @@ -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