mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-11-25 16:55:52 +00:00
fix of #1002
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
* `Core`:
|
* `Core`:
|
||||||
* Fix of [#1001](https://github.com/InsanusMokrassar/ktgbotapi/issues/1001)
|
* Fix of [#1001](https://github.com/InsanusMokrassar/ktgbotapi/issues/1001)
|
||||||
|
* Fix of [#1002](https://github.com/InsanusMokrassar/ktgbotapi/issues/1002)
|
||||||
|
|
||||||
## 28.0.1
|
## 28.0.1
|
||||||
|
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ suspend fun TelegramBot.buildBehaviourWithLongPolling(
|
|||||||
timeoutSeconds = timeoutSeconds,
|
timeoutSeconds = timeoutSeconds,
|
||||||
autoDisableWebhooks = autoDisableWebhooks,
|
autoDisableWebhooks = autoDisableWebhooks,
|
||||||
autoSkipTimeoutExceptions = autoSkipTimeoutExceptions,
|
autoSkipTimeoutExceptions = autoSkipTimeoutExceptions,
|
||||||
mediaGroupsDebounceTimeMillis = mediaGroupsDebounceTimeMillis
|
mediaGroupsDebounceTimeMillis = mediaGroupsDebounceTimeMillis,
|
||||||
|
exceptionsHandler = defaultExceptionsHandler
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class DefaultKtorRequestsExecutor internal constructor(
|
|||||||
|
|
||||||
when (e) {
|
when (e) {
|
||||||
is ClientRequestException -> {
|
is ClientRequestException -> {
|
||||||
val exceptionResult = runCatching {
|
val exceptionResult = runCatchingLogging(logger = Log) {
|
||||||
val content = e.response.bodyAsText()
|
val content = e.response.bodyAsText()
|
||||||
val responseObject = jsonFormatter.decodeFromString(Response.serializer(), content)
|
val responseObject = jsonFormatter.decodeFromString(Response.serializer(), content)
|
||||||
newRequestException(
|
newRequestException(
|
||||||
|
|||||||
Reference in New Issue
Block a user