From 513fd684e42606ab296664d74ee082ce8b191a9d Mon Sep 17 00:00:00 2001 From: akulij Date: Tue, 13 Aug 2024 06:21:45 +0300 Subject: [PATCH] Reset user state on /start commandr local commits) --- cmd/app/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/app/main.go b/cmd/app/main.go index 4da0048..c38fea3 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -122,6 +122,7 @@ func ProcessUpdate(bc BotController, update tgbotapi.Update) { log.Printf("Args: %s", args) if possibleCommand == "/start" { + bc.db.Model(&user).Update("state", "start") kbd := tgbotapi.NewInlineKeyboardMarkup( tgbotapi.NewInlineKeyboardRow( tgbotapi.NewInlineKeyboardButtonData(bc.GetBotContent("leave_ticket_button"), "leave_ticket_button"),