fix new all command

This commit is contained in:
Владимир Фёдоров 2022-04-29 21:51:40 +07:00
parent 292888ce9c
commit 3f630cb775
1 changed files with 3 additions and 0 deletions

View File

@ -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, " @")))
} }