mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-03 07:09:23 +00:00
fix not implemented error thrown
This commit is contained in:
@@ -64,12 +64,16 @@ internal data class RawUpdate constructor(
|
||||
raw
|
||||
)
|
||||
}
|
||||
} catch (e: SerializationException) {
|
||||
UnknownUpdateType(
|
||||
updateId,
|
||||
raw.toString(),
|
||||
raw
|
||||
)
|
||||
} catch (e: Error) {
|
||||
when (e) {
|
||||
is SerializationException,
|
||||
is NotImplementedError -> UnknownUpdateType(
|
||||
updateId,
|
||||
raw.toString(),
|
||||
raw
|
||||
)
|
||||
else -> throw e
|
||||
}
|
||||
}.also {
|
||||
initedUpdate = it
|
||||
}
|
||||
|
Reference in New Issue
Block a user