From 459414e7dd0da4d95fa5be77c21b0092ca8b212f Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 21 Mar 2022 17:03:37 +0600 Subject: [PATCH] add RistFeature to SerializationModule --- .../tgbotapi/types/message/content/abstracts/MessageContent.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/abstracts/MessageContent.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/abstracts/MessageContent.kt index 47cd2b3939..ed5545ffe5 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/abstracts/MessageContent.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/abstracts/MessageContent.kt @@ -3,10 +3,12 @@ package dev.inmo.tgbotapi.types.message.content.abstracts import dev.inmo.tgbotapi.types.message.content.* import dev.inmo.tgbotapi.types.message.content.media.* import dev.inmo.tgbotapi.types.message.payments.InvoiceContent +import dev.inmo.tgbotapi.utils.RiskFeature import kotlinx.serialization.modules.* interface MessageContent: ResendableContent { companion object { + @RiskFeature("This serialization module can be changed in near releases") fun serializationModule( additionalBuilder: PolymorphicModuleBuilder.() -> Unit = {} ) = SerializersModule {