Archived
1

Telegram is weird. Trying to fix some strange errors.

This commit is contained in:
Vladimir Hodakov 2018-01-30 20:21:18 +04:00
parent 7e9e0e11ff
commit f3110ab391
2 changed files with 4 additions and 4 deletions

View File

@ -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
}

View File

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