From 53ae56e8870f8103f0f9653e1213507043d46114 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 15 Jul 2024 16:29:16 +0600 Subject: [PATCH] remove class casts from Location Content --- .../inmo/tgbotapi/types/message/content/LocationContent.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/LocationContent.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/LocationContent.kt index bd80435486..57da898a8e 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/LocationContent.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/content/LocationContent.kt @@ -119,7 +119,7 @@ data class LiveLocationContent( effectId = effectId, replyParameters = replyParameters, replyMarkup = replyMarkup - ) as SendMessageRequest> + ) } /** @@ -150,5 +150,5 @@ data class StaticLocationContent( effectId = effectId, replyParameters = replyParameters, replyMarkup = replyMarkup - ) as SendMessageRequest> + ) }