diff --git a/cmd/app/main.go b/cmd/app/main.go index 416f486..35b1570 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -88,8 +88,10 @@ func notifyAboutEvents(bc BotController) { for _, reservation := range reservations { uid := reservation.UserID - msg := tgbotapi.NewMessage(uid, bc.GetBotContent("notify_pre_event")) - bc.bot.Send(msg) + go func() { + msg := tgbotapi.NewMessage(uid, bc.GetBotContent("notify_pre_event")) + bc.bot.Send(msg) + }() } } }