From f7ee0828ce41b809d983be9eebaa0dbc4f495503 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 16 Feb 2026 15:05:37 +0600 Subject: [PATCH] small improvements --- .../src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Impls.kt | 2 +- .../kotlin/dev/inmo/tgbotapi/types/message/RawMessage.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Impls.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Impls.kt index fa07a4447a..fc7ee3e953 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Impls.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Impls.kt @@ -152,7 +152,7 @@ data class CommonBot( data class CommonUser( @Suppress("SERIALIZER_TYPE_INCOMPATIBLE") @SerialName(idField) - override val id: UserId, + override val id: IdChatIdentifier, @SerialName(firstNameField) override val firstName: String, @SerialName(lastNameField) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/RawMessage.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/RawMessage.kt index 6134bdde10..e9cb9574f1 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/RawMessage.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/RawMessage.kt @@ -756,7 +756,7 @@ internal data class RawMessage( ) val actualForumChat = when (chat) { is PrivateForumChatImpl -> chat.copy(id = chatId) - is CommonUser -> chat + is CommonUser -> chat.copy(id = chatId) is CommonBot -> chat is PrivateChatImpl -> PrivateForumChatImpl( id = chatId,