fix new all command
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user