# Uses of Class
it.tdlight.jni.TdApi.MessageSelfDestructType

## Uses of TdApi.MessageSelfDestructType in it.tdlight.jni

Subclasses of TdApi.MessageSelfDestructType in it.tdlight.jni
Modifier and Type
Class
Description
`static final class`
`TdApi.MessageSelfDestructTypeImmediately`
The message can be opened only once and will be self-destructed once closed.
`static final class`
`TdApi.MessageSelfDestructTypeTimer`
The message will be self-destructed in the specified time after its content was opened.
Fields in it.tdlight.jni declared as TdApi.MessageSelfDestructType
Modifier and Type
Field
Description
`TdApi.MessageSelfDestructType`
TdApi.InputMessagePhoto.`selfDestructType`
Photo self-destruct type; pass null if none; private chats only.
`TdApi.MessageSelfDestructType`
TdApi.InputMessageVideo.`selfDestructType`
Video self-destruct type; pass null if none; private chats only.
`TdApi.MessageSelfDestructType`
TdApi.InputMessageVideoNote.`selfDestructType`
Video note self-destruct type; may be null if none; pass null if none; private chats only.
`TdApi.MessageSelfDestructType`
TdApi.InputMessageVoiceNote.`selfDestructType`
Voice note self-destruct type; may be null if none; pass null if none; private chats only.
`TdApi.MessageSelfDestructType`
TdApi.Message.`selfDestructType`
The message's self-destruct type; may be null if none.
Constructors in it.tdlight.jni with parameters of type TdApi.MessageSelfDestructType
Modifier
Constructor
Description
``
`InputMessagePhoto(TdApi.InputFile photo, TdApi.InputThumbnail thumbnail, int[] addedStickerFileIds, int width, int height, TdApi.FormattedText caption, TdApi.MessageSelfDestructType selfDestructType, boolean hasSpoiler)`
A photo message.
``
`InputMessageVideo(TdApi.InputFile video, TdApi.InputThumbnail thumbnail, int[] addedStickerFileIds, int duration, int width, int height, boolean supportsStreaming, TdApi.FormattedText caption, TdApi.MessageSelfDestructType selfDestructType, boolean hasSpoiler)`
A video message.
``
`InputMessageVideoNote(TdApi.InputFile videoNote, TdApi.InputThumbnail thumbnail, int duration, int length, TdApi.MessageSelfDestructType selfDestructType)`
A video note message.
``
`InputMessageVoiceNote(TdApi.InputFile voiceNote, int duration, byte[] waveform, TdApi.FormattedText caption, TdApi.MessageSelfDestructType selfDestructType)`
A voice note message.
``
`Message(long id, TdApi.MessageSender senderId, long chatId, TdApi.MessageSendingState sendingState, TdApi.MessageSchedulingState schedulingState, boolean isOutgoing, boolean isPinned, boolean canBeEdited, boolean canBeForwarded, boolean canBeRepliedInAnotherChat, boolean canBeSaved, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canGetAddedReactions, boolean canGetStatistics, boolean canGetMessageThread, boolean canGetReadDate, boolean canGetViewers, boolean canGetMediaTimestampLinks, boolean canReportReactions, boolean hasTimestampedMedia, boolean isChannelPost, boolean isTopicMessage, boolean containsUnreadMention, int date, int editDate, TdApi.MessageForwardInfo forwardInfo, TdApi.MessageImportInfo importInfo, TdApi.MessageInteractionInfo interactionInfo, TdApi.UnreadReaction[] unreadReactions, TdApi.MessageReplyTo replyTo, long messageThreadId, long savedMessagesTopicId, TdApi.MessageSelfDestructType selfDestructType, double selfDestructIn, double autoDeleteIn, long viaBotUserId, int senderBoostCount, String authorSignature, long mediaAlbumId, String restrictionReason, TdApi.MessageContent content, TdApi.ReplyMarkup replyMarkup)`
Describes a message.