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:
parent
0faca5838c
commit
233d893b5a
@ -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