asynchronously send event notification
This commit is contained in:
parent
5923f6bf3f
commit
bf1d7df88f
@ -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)
|
||||
}()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user