mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-03 15:19:30 +00:00
Update Webhook.kt
This commit is contained in:
@@ -49,10 +49,11 @@ fun Route.includeWebhookHandlingInRoute(
|
|||||||
transformer(update)
|
transformer(update)
|
||||||
}.onSuccess {
|
}.onSuccess {
|
||||||
call.respond(HttpStatusCode.OK)
|
call.respond(HttpStatusCode.OK)
|
||||||
|
}.onFailure {
|
||||||
|
call.respond(HttpStatusCode.InternalServerError)
|
||||||
}
|
}
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
exceptionsHandler ?.invoke(e)
|
exceptionsHandler ?.invoke(e)
|
||||||
call.respond(HttpStatusCode.InternalServerError)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user