1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-01 15:35:24 +00:00

Update Webhook.kt

This commit is contained in:
InsanusMokrassar 2022-05-14 02:32:39 +06:00 committed by GitHub
parent 82c6eda0b7
commit 1e73aac750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ fun Route.includeWebhookHandlingInRoute(
call.respond(HttpStatusCode.OK)
}.onFailure {
call.respond(HttpStatusCode.InternalServerError)
}
}.getOrThrow()
} catch (e: Throwable) {
exceptionsHandler ?.invoke(e)
}