fix new all command
This commit is contained in:
parent
292888ce9c
commit
3f630cb775
3
main.go
3
main.go
|
@ -83,6 +83,9 @@ func run() {
|
||||||
|
|
||||||
if strings.Contains(strings.ToLower(text), tag) {
|
if strings.Contains(strings.ToLower(text), tag) {
|
||||||
users, _ := db.GetUsers(chatID)
|
users, _ := db.GetUsers(chatID)
|
||||||
|
for _, user := range users {
|
||||||
|
_, _ = bot.Send(tgbot.NewMessage(chatID, "@"+user))
|
||||||
|
}
|
||||||
_, _ = bot.Send(tgbot.NewMessage(chatID, "@"+strings.Join(users, " @")))
|
_, _ = bot.Send(tgbot.NewMessage(chatID, "@"+strings.Join(users, " @")))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue