From 718f6ab3667183a36c7f0ac8e9fa68b6ba4b28ad Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 28 May 2024 21:35:27 +0600 Subject: [PATCH] start add effects support --- .../commonMain/kotlin/dev/inmo/tgbotapi/types/EffectId.kt | 8 ++++++++ .../kotlin/dev/inmo/tgbotapi/types/message/RawMessage.kt | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/EffectId.kt diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/EffectId.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/EffectId.kt new file mode 100644 index 0000000000..e042d8e260 --- /dev/null +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/EffectId.kt @@ -0,0 +1,8 @@ +package dev.inmo.tgbotapi.types + +import kotlinx.serialization.Serializable +import kotlin.jvm.JvmInline + +@Serializable +@JvmInline +value class EffectId(val string: String) 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 a8361042b5..056f5de8bf 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 @@ -143,6 +143,8 @@ internal data class RawMessage( private val link_preview_options: LinkPreviewOptions? = null, + private val effect_id: EffectId? = null, + private val reply_markup: InlineKeyboardMarkup? = null, // Business