Reset user state on /start commandr local commits)
This commit is contained in:
parent
7067a796d0
commit
f18d65ae0b
@ -122,6 +122,7 @@ func ProcessUpdate(bc BotController, update tgbotapi.Update) {
|
|||||||
log.Printf("Args: %s", args)
|
log.Printf("Args: %s", args)
|
||||||
|
|
||||||
if possibleCommand == "/start" {
|
if possibleCommand == "/start" {
|
||||||
|
bc.db.Model(&user).Update("state", "start")
|
||||||
kbd := tgbotapi.NewInlineKeyboardMarkup(
|
kbd := tgbotapi.NewInlineKeyboardMarkup(
|
||||||
tgbotapi.NewInlineKeyboardRow(
|
tgbotapi.NewInlineKeyboardRow(
|
||||||
tgbotapi.NewInlineKeyboardButtonData(bc.GetBotContent("leave_ticket_button"), "leave_ticket_button"),
|
tgbotapi.NewInlineKeyboardButtonData(bc.GetBotContent("leave_ticket_button"), "leave_ticket_button"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user