diff --git a/cmd/i2_bot/i2_bot.go b/cmd/i2_bot/i2_bot.go index 6c5d749..44ed52b 100644 --- a/cmd/i2_bot/i2_bot.go +++ b/cmd/i2_bot/i2_bot.go @@ -69,11 +69,11 @@ func main() { } } } else if update.InlineQuery != nil { - go c.Router.RouteInline(&update) + c.Router.RouteInline(&update) } else if update.CallbackQuery != nil { - go c.Router.RouteCallback(&update) + c.Router.RouteCallback(&update) } else if update.ChosenInlineResult != nil { - go c.Log.Debug(update.ChosenInlineResult.ResultID) + c.Log.Debug(update.ChosenInlineResult.ResultID) } else { continue } diff --git a/lib/router/private_request.go b/lib/router/private_request.go index dcfa7f9..45c82bb 100644 --- a/lib/router/private_request.go +++ b/lib/router/private_request.go @@ -99,7 +99,7 @@ func (r *Router) routePrivateRequest(update *tgbotapi.Update, playerRaw *dbmappi return c.Talkers.AnyMessageUnauthorized(update) case update.Message.Command() == "send_confirm": if c.Users.PlayerBetterThan(playerRaw, "admin") { - c.Broadcaster.AdminBroadcastMessageSend(update, playerRaw) + go c.Broadcaster.AdminBroadcastMessageSend(update, playerRaw) return "ok" }