diff --git a/main.go b/main.go index cec3752..c180215 100644 --- a/main.go +++ b/main.go @@ -83,9 +83,17 @@ func run() { if strings.Contains(strings.ToLower(text), tag) { users, _ := db.GetUsers(chatID) - s := "@" + users[0] - for _, user := range users[1:] { - s += " @" + user + s := "" + i := 0 + for _, user := range users { + if username == user { + continue + } + if i > 0 { + s += " " + } + s += "@" + user + i++ } _, _ = bot.Send(tgbot.NewMessage(chatID, s)) }