1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-29 13:38:43 +00:00

fix in MessageAutoDeleteTimerChanged

This commit is contained in:
InsanusMokrassar 2022-01-02 01:12:41 +06:00
parent 596176ee93
commit 4d9be1a995

View File

@ -13,7 +13,7 @@ private const val seconds7Days: Seconds = seconds24Hours * 7
data class MessageAutoDeleteTimerChanged( data class MessageAutoDeleteTimerChanged(
@SerialName(messageAutoDeleteTimeField) @SerialName(messageAutoDeleteTimeField)
val newAutoDeleteTime: Seconds // TODO:: check that it is seconds val newAutoDeleteTime: Seconds // TODO:: check that it is seconds
) : ChannelEvent, GroupEvent, SupergroupEvent ) : ChannelEvent, GroupEvent, SupergroupEvent, PrivateEvent
val MessageAutoDeleteTimerChanged.isOff val MessageAutoDeleteTimerChanged.isOff
get() = newAutoDeleteTime == 0 get() = newAutoDeleteTime == 0