1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-27 20:48:44 +00:00

add isOff extension for MessageAutoDeleteTimerChanged

This commit is contained in:
InsanusMokrassar 2021-03-09 22:33:05 +06:00
parent a19b3d26df
commit 27fa081163

View File

@ -16,6 +16,9 @@ data class MessageAutoDeleteTimerChanged(
val newAutoDeleteTime: Seconds // TODO:: check that it is seconds
) : ChannelEvent, GroupEvent, SupergroupEvent
val MessageAutoDeleteTimerChanged.isOff
get() = newAutoDeleteTime == 0
val MessageAutoDeleteTimerChanged.is24Hours
get() = newAutoDeleteTime == seconds24Hours