From f6916ae5bb957d686bc72dea4470a05fa00b0b1a Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Sun, 12 Mar 2023 14:02:54 +0700 Subject: [PATCH] fix --- db/db.go | 5 +---- main.go | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/db/db.go b/db/db.go index a22f274..b014190 100644 --- a/db/db.go +++ b/db/db.go @@ -28,10 +28,7 @@ type ChatInfoDTO struct { } func (c *ChatInfoDTO) GetStatus() UserState { - if c.Status == "" { - return UserStateNone - } - return UserStateGo + return UserState(c.Status) } type Workout struct { diff --git a/main.go b/main.go index fd018de..97a64c5 100644 --- a/main.go +++ b/main.go @@ -149,7 +149,7 @@ func run() { msgText = "Плохо, хочешь быть толстым и не красивым?" } msg := tgbot.NewMessage(chatID, msgText) - msg.ReplyMarkup = tgbot.NewHideKeyboard(false) + msg.ReplyMarkup = tgbot.NewRemoveKeyboard(false) _, _ = bot.Send(msg) if err := db.SetStatusToChat(chatID, db.UserStateNone); err != nil { log.Println(err)