fix
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f1f3fb5db4
commit
f6916ae5bb
5
db/db.go
5
db/db.go
|
@ -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 {
|
||||||
|
|
2
main.go
2
main.go
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue