From a2dab361cffc4a87b303c18bf0e3895567f01ed2 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 11 Feb 2023 20:43:22 +0600 Subject: [PATCH] MessageMetaInfo now serialize chatId as is instead of ChatId version --- resender/src/commonMain/kotlin/MessageMetaInfo.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resender/src/commonMain/kotlin/MessageMetaInfo.kt b/resender/src/commonMain/kotlin/MessageMetaInfo.kt index f844c63..fa2ba2b 100644 --- a/resender/src/commonMain/kotlin/MessageMetaInfo.kt +++ b/resender/src/commonMain/kotlin/MessageMetaInfo.kt @@ -1,5 +1,6 @@ package dev.inmo.tgbotapi.libraries.resender +import dev.inmo.tgbotapi.types.FullChatIdentifierSerializer import dev.inmo.tgbotapi.types.IdChatIdentifier import dev.inmo.tgbotapi.types.MessageId import dev.inmo.tgbotapi.types.message.abstracts.Message @@ -8,6 +9,7 @@ import kotlinx.serialization.Serializable @Serializable data class MessageMetaInfo( + @Serializable(FullChatIdentifierSerializer::class) val chatId: IdChatIdentifier, val messageId: MessageId, val group: String? = null