Reset user state on /start commandr local commits)

This commit is contained in:
akulij 2024-08-13 06:21:45 +03:00
parent 7067a796d0
commit f18d65ae0b

View File

@ -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"),