mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-10-28 23:42:58 +00:00
Update Webhook.kt
This commit is contained in:
1 parent
e9ff93cde1
commit
82c6eda0b7
1 file changed
+2
-1
+2
-1
@@ -49,10 +49,11 @@ fun Route.includeWebhookHandlingInRoute(
|
||||
transformer(update)
|
||||
}.onSuccess {
|
||||
call.respond(HttpStatusCode.OK)
|
||||
}.onFailure {
|
||||
call.respond(HttpStatusCode.InternalServerError)
|
||||
}
|
||||
} catch (e: Throwable) {
|
||||
exceptionsHandler ?.invoke(e)
|
||||
call.respond(HttpStatusCode.InternalServerError)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user