mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 20:18:45 +00:00
change type of exception inside of serialization of message
This commit is contained in:
parent
f86ae2b592
commit
c6638f3102
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user