fix: syntax error

This commit is contained in:
Lennard Brinkhaus 2024-10-28 21:43:47 +01:00
parent 2ae3e4f196
commit c8a751b468

View File

@ -9,17 +9,6 @@ import (
"strings" "strings"
) )
package commands
import (
"git.dragon-labs.de/alphyron/group_helper/cli"
"git.dragon-labs.de/alphyron/group_helper/models"
"git.dragon-labs.de/alphyron/group_helper/obj"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
"strconv"
"strings"
)
type listVerifyCommand struct { type listVerifyCommand struct {
verifyData *obj.VerifyData verifyData *obj.VerifyData
} }
@ -47,7 +36,7 @@ func (w listVerifyCommand) ExecuteCommand(api *tgbotapi.BotAPI, update *tgbotapi
currentUsers = append(currentUsers, strconv.Itoa(user.UserID)) currentUsers = append(currentUsers, strconv.Itoa(user.UserID))
} }
_, err := api.Send(tgbotapi.NewMessage(update.Message.Chat.ID, "Users: [" + strings.Join(currentUsers, ",") + "]")) _, err := api.Send(tgbotapi.NewMessage(update.Message.Chat.ID, "Users: ["+strings.Join(currentUsers, ",")+"]"))
return err != nil, err return err != nil, err
} }