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

include message_auto_delete_timer_change

This commit is contained in:
InsanusMokrassar 2021-03-09 19:45:19 +06:00
parent c66d1e8665
commit cb688a7831
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,10 @@
package dev.inmo.tgbotapi.types.message.ChatEvents
import dev.inmo.tgbotapi.types.Seconds
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChatEvent
import kotlinx.serialization.Serializable
@Serializable
data class MessageAutoDeleteTimerChanged(
val newAutoDeleteTime: Seconds // TODO:: check that it is seconds
) : ChatEvent

View File

@ -87,6 +87,9 @@ internal data class RawMessage(
private val voice_chat_ended: VoiceChatEnded? = null,
private val voice_chat_participants_invited: VoiceChatParticipantsInvited? = null,
// AutoDelete Message time changed
private val message_auto_delete_timer_changed: MessageAutoDeleteTimerChanged? = null,
// login property
private val connected_website: String? = null,
@ -179,6 +182,7 @@ internal data class RawMessage(
new_chat_title != null -> NewChatTitle(new_chat_title)
new_chat_photo != null -> NewChatPhoto(new_chat_photo.toList())
voice_chat_started != null -> voice_chat_started
message_auto_delete_timer_changed != null -> message_auto_delete_timer_changed
voice_chat_ended != null -> voice_chat_ended
voice_chat_participants_invited != null -> voice_chat_participants_invited
delete_chat_photo -> DeleteChatPhoto()