From f93d9938dea6dd277ad77bdc0563ba4fbdaf9564 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 9 Mar 2021 22:06:20 +0600 Subject: [PATCH] shortcuts seconds24Hours and seconds7Days are consts for now --- .../types/message/ChatEvents/MessageAutoDeleteTimerChanged.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/MessageAutoDeleteTimerChanged.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/MessageAutoDeleteTimerChanged.kt index adbce62869..189b5d56af 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/MessageAutoDeleteTimerChanged.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/MessageAutoDeleteTimerChanged.kt @@ -7,8 +7,8 @@ import dev.inmo.tgbotapi.types.messageAutoDeleteTimeField import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable -private val seconds24Hours: Seconds = 60 * 60 * 24 -private val seconds7Days: Seconds = seconds24Hours * 7 +private const val seconds24Hours: Seconds = 60 * 60 * 24 +private const val seconds7Days: Seconds = seconds24Hours * 7 @Serializable data class MessageAutoDeleteTimerChanged(