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:
parent
a19b3d26df
commit
27fa081163
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user