fix
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Владимир Фёдоров 2023-03-12 14:02:54 +07:00
parent f1f3fb5db4
commit f6916ae5bb
2 changed files with 2 additions and 5 deletions

View File

@ -28,10 +28,7 @@ type ChatInfoDTO struct {
} }
func (c *ChatInfoDTO) GetStatus() UserState { func (c *ChatInfoDTO) GetStatus() UserState {
if c.Status == "" { return UserState(c.Status)
return UserStateNone
}
return UserStateGo
} }
type Workout struct { type Workout struct {

View File

@ -149,7 +149,7 @@ func run() {
msgText = "Плохо, хочешь быть толстым и не красивым?" msgText = "Плохо, хочешь быть толстым и не красивым?"
} }
msg := tgbot.NewMessage(chatID, msgText) msg := tgbot.NewMessage(chatID, msgText)
msg.ReplyMarkup = tgbot.NewHideKeyboard(false) msg.ReplyMarkup = tgbot.NewRemoveKeyboard(false)
_, _ = bot.Send(msg) _, _ = bot.Send(msg)
if err := db.SetStatusToChat(chatID, db.UserStateNone); err != nil { if err := db.SetStatusToChat(chatID, db.UserStateNone); err != nil {
log.Println(err) log.Println(err)