From 3f630cb775a54694a21db2e4602c6e595d20636e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=A4?= =?UTF-8?q?=D0=B5=D0=B4=D0=BE=D1=80=D0=BE=D0=B2?= Date: Fri, 29 Apr 2022 21:51:40 +0700 Subject: [PATCH] fix new all command --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 08c5106..04eddb3 100644 --- a/main.go +++ b/main.go @@ -83,6 +83,9 @@ func run() { if strings.Contains(strings.ToLower(text), tag) { users, _ := db.GetUsers(chatID) + for _, user := range users { + _, _ = bot.Send(tgbot.NewMessage(chatID, "@"+user)) + } _, _ = bot.Send(tgbot.NewMessage(chatID, "@"+strings.Join(users, " @"))) }