mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-03 15:19:30 +00:00
change type of exception inside of serialization of message
This commit is contained in:
@@ -31,6 +31,6 @@ internal object TelegramBotAPIMessageDeserializeOnlySerializer : KSerializer<Mes
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun serialize(encoder: Encoder, obj: Message) {
|
override fun serialize(encoder: Encoder, obj: Message) {
|
||||||
throw IllegalStateException("Currently, Message objects can't be serialized y this serializer")
|
throw UnsupportedOperationException("Currently, Message objects can't be serialized y this serializer")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user