<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="inheritance"><ahref="TdApi.Object.html"title="class in it.tdlight.jni">it.tdlight.jni.TdApi.Object</a>
<divclass="col-first even-row-color"><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="block">Time left before the message will be automatically deleted by messageAutoDeleteTime setting of the chat, in seconds; 0 if never.</div>
<divclass="block">True, if media timestamp links can be generated for media timestamp entities in the message text, caption or web page description through getMessageLink.</div>
<divclass="block">Point in time (Unix timestamp) when the message was last edited.</div>
</div>
<divclass="col-first odd-row-color"><code><ahref="TdApi.MessageForwardInfo.html"title="class in it.tdlight.jni">TdApi.MessageForwardInfo</a></code></div>
<divclass="block">Message identifier; unique for the chat to which the message belongs.</div>
</div>
<divclass="col-first even-row-color"><code><ahref="TdApi.MessageInteractionInfo.html"title="class in it.tdlight.jni">TdApi.MessageInteractionInfo</a></code></div>
<divclass="block">If non-zero, the identifier of the chat to which the replied message belongs; Currently, only messages in the Replies chat can have different replyInChatId and chatId.</div>
</div>
<divclass="col-first even-row-color"><code><ahref="TdApi.ReplyMarkup.html"title="class in it.tdlight.jni">TdApi.ReplyMarkup</a></code></div>
<divclass="block">If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message.</div>
</div>
<divclass="col-first even-row-color"><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="block">If non-empty, contains a human-readable description of the reason why access to this message must be restricted.</div>
</div>
<divclass="col-first odd-row-color"><code><ahref="TdApi.MessageSchedulingState.html"title="class in it.tdlight.jni">TdApi.MessageSchedulingState</a></code></div>
<divclass="block">Identifier of the sender of the message.</div>
</div>
<divclass="col-first odd-row-color"><code><ahref="TdApi.MessageSendingState.html"title="class in it.tdlight.jni">TdApi.MessageSendingState</a></code></div>
<ahref="TdApi.MessageSender.html"title="class in it.tdlight.jni">TdApi.MessageSender</a> senderId,
long chatId,
<ahref="TdApi.MessageSendingState.html"title="class in it.tdlight.jni">TdApi.MessageSendingState</a> sendingState,
<ahref="TdApi.MessageSchedulingState.html"title="class in it.tdlight.jni">TdApi.MessageSchedulingState</a> schedulingState,
boolean isOutgoing,
boolean isPinned,
boolean canBeEdited,
boolean canBeForwarded,
boolean canBeSaved,
boolean canBeDeletedOnlyForSelf,
boolean canBeDeletedForAllUsers,
boolean canGetAddedReactions,
boolean canGetStatistics,
boolean canGetMessageThread,
boolean canGetViewers,
boolean canGetMediaTimestampLinks,
boolean canReportReactions,
boolean hasTimestampedMedia,
boolean isChannelPost,
boolean isTopicMessage,
boolean containsUnreadMention,
int date,
int editDate,
<ahref="TdApi.MessageForwardInfo.html"title="class in it.tdlight.jni">TdApi.MessageForwardInfo</a> forwardInfo,
<ahref="TdApi.MessageInteractionInfo.html"title="class in it.tdlight.jni">TdApi.MessageInteractionInfo</a> interactionInfo,
<ahref="TdApi.UnreadReaction.html"title="class in it.tdlight.jni">TdApi.UnreadReaction</a>[] unreadReactions,
long replyInChatId,
long replyToMessageId,
long messageThreadId,
int selfDestructTime,
double selfDestructIn,
double autoDeleteIn,
long viaBotUserId,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> authorSignature,
long mediaAlbumId,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> restrictionReason,
<ahref="TdApi.MessageContent.html"title="class in it.tdlight.jni">TdApi.MessageContent</a> content,
<ahref="TdApi.ReplyMarkup.html"title="class in it.tdlight.jni">TdApi.ReplyMarkup</a> replyMarkup)</code></div>
<divclass="col-last odd-row-color">
<divclass="block">Describes a message.</div>
</div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(java.io.DataInput)"class="member-name-link">Message</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/DataInput.html"title="class or interface in java.io"class="external-link">DataInput</a> input)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#equals(java.lang.Object)"class="member-name-link">equals</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> o)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#serialize(java.io.DataOutput)"class="member-name-link">serialize</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/DataOutput.html"title="class or interface in java.io"class="external-link">DataOutput</a> output)</code></div>
<h3id="methods-inherited-from-class-it.tdlight.jni.TdApi.Object">Methods inherited from class it.tdlight.jni.<ahref="TdApi.Object.html"title="class in it.tdlight.jni">TdApi.Object</a></h3>
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="block">Message identifier; unique for the chat to which the message belongs.</div>
</section>
</li>
<li>
<sectionclass="detail"id="senderId">
<h3>senderId</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.MessageSender.html"title="class in it.tdlight.jni">TdApi.MessageSender</a></span> <spanclass="element-name">senderId</span></div>
<divclass="block">Identifier of the sender of the message.</div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.MessageSendingState.html"title="class in it.tdlight.jni">TdApi.MessageSendingState</a></span> <spanclass="element-name">sendingState</span></div>
<divclass="block">The sending state of the message; may be null.</div>
</section>
</li>
<li>
<sectionclass="detail"id="schedulingState">
<h3>schedulingState</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.MessageSchedulingState.html"title="class in it.tdlight.jni">TdApi.MessageSchedulingState</a></span> <spanclass="element-name">schedulingState</span></div>
<divclass="block">The scheduling state of the message; may be null.</div>
<divclass="block">True, if the message can be edited. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message by the application.</div>
<divclass="block">True, if media timestamp links can be generated for media timestamp entities in the message text, caption or web page description through getMessageLink.</div>
<divclass="block">Point in time (Unix timestamp) when the message was last edited.</div>
</section>
</li>
<li>
<sectionclass="detail"id="forwardInfo">
<h3>forwardInfo</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.MessageForwardInfo.html"title="class in it.tdlight.jni">TdApi.MessageForwardInfo</a></span> <spanclass="element-name">forwardInfo</span></div>
<divclass="block">Information about the initial message sender; may be null.</div>
</section>
</li>
<li>
<sectionclass="detail"id="interactionInfo">
<h3>interactionInfo</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.MessageInteractionInfo.html"title="class in it.tdlight.jni">TdApi.MessageInteractionInfo</a></span> <spanclass="element-name">interactionInfo</span></div>
<divclass="block">Information about interactions with the message; may be null.</div>
</section>
</li>
<li>
<sectionclass="detail"id="unreadReactions">
<h3>unreadReactions</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.UnreadReaction.html"title="class in it.tdlight.jni">TdApi.UnreadReaction</a>[]</span> <spanclass="element-name">unreadReactions</span></div>
<divclass="block">Information about unread reactions added to the message.</div>
<divclass="block">If non-zero, the identifier of the chat to which the replied message belongs; Currently, only messages in the Replies chat can have different replyInChatId and chatId.</div>
<divclass="block">The message's self-destruct time, in seconds; 0 if none. TDLib will send updateDeleteMessages or updateMessageContent once the time expires.</div>
<divclass="block">Time left before the message self-destruct timer expires, in seconds. If the self-destruct timer isn't started yet, equals to the value of the selfDestructTime field.</div>
<divclass="block">Time left before the message will be automatically deleted by messageAutoDeleteTime setting of the chat, in seconds; 0 if never. TDLib will send updateDeleteMessages or updateMessageContent once the time expires.</div>
<divclass="block">If non-zero, the user identifier of the bot through which this message was sent.</div>
</section>
</li>
<li>
<sectionclass="detail"id="authorSignature">
<h3>authorSignature</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">authorSignature</span></div>
<divclass="block">For channel posts and anonymous group messages, optional author signature.</div>
<divclass="block">Unique identifier of an album this message belongs to. Only audios, documents, photos and videos can be grouped together in albums.</div>
</section>
</li>
<li>
<sectionclass="detail"id="restrictionReason">
<h3>restrictionReason</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">restrictionReason</span></div>
<divclass="block">If non-empty, contains a human-readable description of the reason why access to this message must be restricted.</div>
</section>
</li>
<li>
<sectionclass="detail"id="content">
<h3>content</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.MessageContent.html"title="class in it.tdlight.jni">TdApi.MessageContent</a></span> <spanclass="element-name">content</span></div>
<divclass="block">Content of the message.</div>
</section>
</li>
<li>
<sectionclass="detail"id="replyMarkup">
<h3>replyMarkup</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.ReplyMarkup.html"title="class in it.tdlight.jni">TdApi.ReplyMarkup</a></span> <spanclass="element-name">replyMarkup</span></div>
<divclass="block">Reply markup for the message; may be null.</div>
<ahref="TdApi.MessageSender.html"title="class in it.tdlight.jni">TdApi.MessageSender</a> senderId,
long chatId,
<ahref="TdApi.MessageSendingState.html"title="class in it.tdlight.jni">TdApi.MessageSendingState</a> sendingState,
<ahref="TdApi.MessageSchedulingState.html"title="class in it.tdlight.jni">TdApi.MessageSchedulingState</a> schedulingState,
boolean isOutgoing,
boolean isPinned,
boolean canBeEdited,
boolean canBeForwarded,
boolean canBeSaved,
boolean canBeDeletedOnlyForSelf,
boolean canBeDeletedForAllUsers,
boolean canGetAddedReactions,
boolean canGetStatistics,
boolean canGetMessageThread,
boolean canGetViewers,
boolean canGetMediaTimestampLinks,
boolean canReportReactions,
boolean hasTimestampedMedia,
boolean isChannelPost,
boolean isTopicMessage,
boolean containsUnreadMention,
int date,
int editDate,
<ahref="TdApi.MessageForwardInfo.html"title="class in it.tdlight.jni">TdApi.MessageForwardInfo</a> forwardInfo,
<ahref="TdApi.MessageInteractionInfo.html"title="class in it.tdlight.jni">TdApi.MessageInteractionInfo</a> interactionInfo,
<ahref="TdApi.UnreadReaction.html"title="class in it.tdlight.jni">TdApi.UnreadReaction</a>[] unreadReactions,
long replyInChatId,
long replyToMessageId,
long messageThreadId,
int selfDestructTime,
double selfDestructIn,
double autoDeleteIn,
long viaBotUserId,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> authorSignature,
long mediaAlbumId,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> restrictionReason,
<ahref="TdApi.MessageContent.html"title="class in it.tdlight.jni">TdApi.MessageContent</a> content,
<ahref="TdApi.ReplyMarkup.html"title="class in it.tdlight.jni">TdApi.ReplyMarkup</a> replyMarkup)</span></div>
<divclass="block">Describes a message.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>id</code> - Message identifier; unique for the chat to which the message belongs.</dd>
<dd><code>senderId</code> - Identifier of the sender of the message.</dd>
<dd><code>chatId</code> - Chat identifier.</dd>
<dd><code>sendingState</code> - The sending state of the message; may be null.</dd>
<dd><code>schedulingState</code> - The scheduling state of the message; may be null.</dd>
<dd><code>isOutgoing</code> - True, if the message is outgoing.</dd>
<dd><code>isPinned</code> - True, if the message is pinned.</dd>
<dd><code>canBeEdited</code> - True, if the message can be edited. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message by the application.</dd>
<dd><code>canBeForwarded</code> - True, if the message can be forwarded.</dd>
<dd><code>canBeSaved</code> - True, if content of the message can be saved locally or copied.</dd>
<dd><code>canBeDeletedOnlyForSelf</code> - True, if the message can be deleted only for the current user while other users will continue to see it.</dd>
<dd><code>canBeDeletedForAllUsers</code> - True, if the message can be deleted for all users.</dd>
<dd><code>canGetAddedReactions</code> - True, if the list of added reactions is available through getMessageAddedReactions.</dd>
<dd><code>canGetStatistics</code> - True, if the message statistics are available through getMessageStatistics.</dd>
<dd><code>canGetMessageThread</code> - True, if information about the message thread is available through getMessageThread and getMessageThreadHistory.</dd>
<dd><code>canGetViewers</code> - True, if chat members already viewed the message can be received through getMessageViewers.</dd>
<dd><code>canGetMediaTimestampLinks</code> - True, if media timestamp links can be generated for media timestamp entities in the message text, caption or web page description through getMessageLink.</dd>
<dd><code>canReportReactions</code> - True, if reactions on the message can be reported through reportMessageReactions.</dd>
<dd><code>hasTimestampedMedia</code> - True, if media timestamp entities refers to a media in this message as opposed to a media in the replied message.</dd>
<dd><code>isChannelPost</code> - True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts.</dd>
<dd><code>isTopicMessage</code> - True, if the message is a forum topic message.</dd>
<dd><code>containsUnreadMention</code> - True, if the message contains an unread mention for the current user.</dd>
<dd><code>date</code> - Point in time (Unix timestamp) when the message was sent.</dd>
<dd><code>editDate</code> - Point in time (Unix timestamp) when the message was last edited.</dd>
<dd><code>forwardInfo</code> - Information about the initial message sender; may be null.</dd>
<dd><code>interactionInfo</code> - Information about interactions with the message; may be null.</dd>
<dd><code>unreadReactions</code> - Information about unread reactions added to the message.</dd>
<dd><code>replyInChatId</code> - If non-zero, the identifier of the chat to which the replied message belongs; Currently, only messages in the Replies chat can have different replyInChatId and chatId.</dd>
<dd><code>replyToMessageId</code> - If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message.</dd>
<dd><code>messageThreadId</code> - If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs.</dd>
<dd><code>selfDestructTime</code> - The message's self-destruct time, in seconds; 0 if none. TDLib will send updateDeleteMessages or updateMessageContent once the time expires.</dd>
<dd><code>selfDestructIn</code> - Time left before the message self-destruct timer expires, in seconds. If the self-destruct timer isn't started yet, equals to the value of the selfDestructTime field.</dd>
<dd><code>autoDeleteIn</code> - Time left before the message will be automatically deleted by messageAutoDeleteTime setting of the chat, in seconds; 0 if never. TDLib will send updateDeleteMessages or updateMessageContent once the time expires.</dd>
<dd><code>viaBotUserId</code> - If non-zero, the user identifier of the bot through which this message was sent.</dd>
<dd><code>authorSignature</code> - For channel posts and anonymous group messages, optional author signature.</dd>
<dd><code>mediaAlbumId</code> - Unique identifier of an album this message belongs to. Only audios, documents, photos and videos can be grouped together in albums.</dd>
<dd><code>restrictionReason</code> - If non-empty, contains a human-readable description of the reason why access to this message must be restricted.</dd>
<dd><code>content</code> - Content of the message.</dd>
<dd><code>replyMarkup</code> - Reply markup for the message; may be null.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Message</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/DataInput.html"title="class or interface in java.io"class="external-link">DataInput</a> input)</span>
throws <spanclass="exceptions"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html"title="class or interface in java.io"class="external-link">IOException</a></span></div>
<divclass="block">Describes a message.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>input</code> - Serialized input</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html"title="class or interface in java.io"class="external-link">IOException</a></code> - the deserialization failed</dd>
<divclass="block"><spanclass="descfrm-type-label">Description copied from class: <code><ahref="TdApi.Object.html#getConstructor()">TdApi.Object</a></code></span></div>
<divclass="block">Returns an identifier uniquely determining type of the object.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="TdApi.Object.html#getConstructor()">getConstructor</a></code> in class <code><ahref="TdApi.Object.html"title="class in it.tdlight.jni">TdApi.Object</a></code></dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">serialize</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/DataOutput.html"title="class or interface in java.io"class="external-link">DataOutput</a> output)</span>
throws <spanclass="exceptions"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html"title="class or interface in java.io"class="external-link">IOException</a></span></div>
<divclass="block">Serialize the TDLib class</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="TdApi.Object.html#serialize(java.io.DataOutput)">serialize</a></code> in class <code><ahref="TdApi.Object.html"title="class in it.tdlight.jni">TdApi.Object</a></code></dd>
<dt>Parameters:</dt>
<dd><code>output</code> - output data stream</dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html"title="class or interface in java.io"class="external-link">IOException</a></code> - the serialization failed</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">equals</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> o)</span></div>
<dlclass="notes">
<dt>Overrides:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footerrole="contentinfo">
<hr>
<pclass="legal-copy"><small>Copyright © 2023. All rights reserved.</small></p>