From 609c2b5fada3133d78ef6661fb3668d7b325b994 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 11 Nov 2024 12:39:42 +0600 Subject: [PATCH] fix of #919 --- .../kotlin/dev/inmo/tgbotapi/types/chat/ChatSerializers.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatSerializers.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatSerializers.kt index 0a655096e8..d7f6b23e16 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatSerializers.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatSerializers.kt @@ -29,6 +29,10 @@ sealed class ChatType { object Channel : ChatType() { override val stringified = "channel" } @Serializable(ChatTypeSerializer::class) class Unknown(override val stringified: String) : ChatType() + + override fun toString(): String { + return stringified + } } val String.asChatType get() = when (this) {