fix
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
6a6aff0274
commit
4e9e9702d5
|
@ -4,11 +4,12 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
"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{
|
||||
|
@ -50,13 +51,8 @@ func (s *pauseBotState) Do(text string, chatInfo *db.ChatInfo) error {
|
|||
msg := tgbot.NewMessage(chatInfo.ChatID, "Хочешь отдохнуть? Сколько времени тебе нужно?")
|
||||
msg.ReplyMarkup = tgbot.NewReplyKeyboard([][]tgbot.KeyboardButton{
|
||||
tgbot.NewKeyboardButtonRow(
|
||||
tgbot.NewKeyboardButton("1ч"),
|
||||
tgbot.NewKeyboardButton("4ч"),
|
||||
),
|
||||
tgbot.NewKeyboardButtonRow(
|
||||
tgbot.NewKeyboardButton("1д"),
|
||||
tgbot.NewKeyboardButton("2д"),
|
||||
tgbot.NewKeyboardButton("7д"),
|
||||
tgbot.NewKeyboardButton("8ч"),
|
||||
tgbot.NewKeyboardButton("32ч"),
|
||||
),
|
||||
}...)
|
||||
_, _ = s.bot.Send(msg)
|
||||
|
|
Loading…
Reference in New Issue