fix new all command
This commit is contained in:
parent
3f630cb775
commit
8f30d79c85
7
main.go
7
main.go
|
@ -83,10 +83,11 @@ func run() {
|
|||
|
||||
if strings.Contains(strings.ToLower(text), tag) {
|
||||
users, _ := db.GetUsers(chatID)
|
||||
for _, user := range users {
|
||||
_, _ = bot.Send(tgbot.NewMessage(chatID, "@"+user))
|
||||
s := "@" + users[0]
|
||||
for _, user := range users[1:] {
|
||||
s += " @" + user
|
||||
}
|
||||
_, _ = bot.Send(tgbot.NewMessage(chatID, "@"+strings.Join(users, " @")))
|
||||
_, _ = bot.Send(tgbot.NewMessage(chatID, s))
|
||||
}
|
||||
|
||||
command := commands.Command(strings.Replace(text, opts.Name, "", 1))
|
||||
|
|
Loading…
Reference in New Issue