update all command
This commit is contained in:
parent
8f30d79c85
commit
fc0eda218f
14
main.go
14
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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue