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)