Telegram is weird. Trying to fix some strange errors.
This commit is contained in:
parent
7e9e0e11ff
commit
f3110ab391
@ -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
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user