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

This commit is contained in:
Владимир Фёдоров 2023-04-22 15:58:23 +07:00
parent edfdf4affb
commit 7b892730f2
1 changed files with 4 additions and 3 deletions

View File

@ -2,11 +2,12 @@ package ping_bot_state
import (
"net/http"
"valera/internal/db"
"valera/internal/states"
tgbot "github.com/go-telegram-bot-api/telegram-bot-api"
"golang.org/x/exp/slices"
"valera/internal/db"
"valera/internal/states"
)
var names = []string{
@ -30,7 +31,7 @@ func (s *pingBotState) Do(text string, chatInfo *db.ChatInfo) error {
return nil
}
msg := "pong"
msg := "Понг"
_, _ = s.bot.Send(tgbot.NewMessage(chatInfo.ChatID, msg))
return s.dataBase.SetStatusToChat(chatInfo.ChatID, db.UserStateNone)
}