MessageContent

public class MessageContent

Base class for all message content types.

Specific message types (e.g. TextMessage, ImageMessage) extend this class and add their own properties.

Inheritance hierarchy:

MessageContent
├── TextMessage
├── LocationMessage
├── StreamMessage
└── MediaMessageContent
├── ImageMessage
├── FileMessage
├── VoiceMessage
├── GIFMessage
├── ShortVideoMessage
├── ReferenceMessage
└── CombineMessage

Inheritors

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
private Long destructTime

Auto-destruct duration in seconds after the message is read.

Link copied to clipboard
private String extra

Extra data attached to the message content (sent along with the message, synced remotely).

Link copied to clipboard
private Boolean isDestruct

Whether this is a burn-after-reading message.

Link copied to clipboard

Mention (@) info.

Functions

Link copied to clipboard
public final Long getDestructTime()

Auto-destruct duration in seconds after the message is read.

Link copied to clipboard
public final String getExtra()

Extra data attached to the message content (sent along with the message, synced remotely).

Link copied to clipboard

Mention (@) info.

Link copied to clipboard
public final Boolean isDestruct()

Whether this is a burn-after-reading message.

Link copied to clipboard
public final Unit setDestruct(Boolean isDestruct)

Whether this is a burn-after-reading message.

Link copied to clipboard
public final Unit setDestructTime(Long destructTime)

Auto-destruct duration in seconds after the message is read.

Link copied to clipboard
public final Unit setExtra(String extra)

Extra data attached to the message content (sent along with the message, synced remotely).

Link copied to clipboard
public final Unit setMentionedInfo(MentionedInfo mentionedInfo)

Mention (@) info.

Link copied to clipboard
public String toString()