This commit is contained in:
rxdn 2022-07-22 17:35:28 +01:00
parent 0afe2f5239
commit 1531742890

View File

@ -44,6 +44,11 @@ func WhitelabelPost(ctx *gin.Context) {
return return
} }
if bot.Id == 0 {
ctx.JSON(400, utils.ErrorStr("Invalid token"))
return
}
if !bot.Bot { if !bot.Bot {
ctx.JSON(400, utils.ErrorStr("Token is not of a bot user")) ctx.JSON(400, utils.ErrorStr("Token is not of a bot user"))
return return