From 4d9be1a9959c0d2ac0ecdcd556212e5d4d2ecdbb Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 2 Jan 2022 01:12:41 +0600 Subject: [PATCH] fix in MessageAutoDeleteTimerChanged --- .../types/message/ChatEvents/MessageAutoDeleteTimerChanged.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3144e466cc..4eadaa5ea9 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 @@ -13,7 +13,7 @@ private const val seconds7Days: Seconds = seconds24Hours * 7 data class MessageAutoDeleteTimerChanged( @SerialName(messageAutoDeleteTimeField) val newAutoDeleteTime: Seconds // TODO:: check that it is seconds -) : ChannelEvent, GroupEvent, SupergroupEvent +) : ChannelEvent, GroupEvent, SupergroupEvent, PrivateEvent val MessageAutoDeleteTimerChanged.isOff get() = newAutoDeleteTime == 0