1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 03:58:44 +00:00

add isOff extension for MessageAutoDeleteTimerChanged

This commit is contained in:
InsanusMokrassar 2021-03-09 22:33:05 +06:00
parent 0faca5838c
commit 233d893b5a

View File

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