mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-23 00:57:13 +00:00
hotfix
This commit is contained in:
parent
ab060d02ea
commit
03d4d715c0
@ -29,7 +29,6 @@ private val baseSerializers: Map<String, KSerializer<out TextSource>> = mapOf(
|
||||
"cashtag" to CashTagTextSource.serializer(),
|
||||
)
|
||||
|
||||
@Serializer(TextSource::class)
|
||||
object TextSourceSerializer : TypedSerializer<TextSource>(TextSource::class, baseSerializers) {
|
||||
override fun <T: TextSource> include(type: String, serializer: KSerializer<T>) {
|
||||
require(type !in baseSerializers.keys)
|
||||
|
Loading…
Reference in New Issue
Block a user