<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/13/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>
<dd><ahref="TdApi.html"title="class in it.tdlight.jni">TdApi</a></dd>
</dl>
<hr>
<pre>public static class <spanclass="type-name-label">TdApi.Message</span>
extends <ahref="TdApi.Object.html"title="class in it.tdlight.jni">TdApi.Object</a></pre>
<divclass="block">Describes a message.</div>
</section>
<sectionclass="summary">
<ulclass="summary-list">
<!-- =========== FIELD SUMMARY =========== -->
<li>
<sectionclass="field-summary"id="field.summary">
<h2>Field Summary</h2>
<divclass="member-summary">
<tableclass="summary-table">
<caption><span>Fields</span></caption>
<thead>
<tr>
<thclass="col-first"scope="col">Modifier and Type</th>
<thclass="col-second"scope="col">Field</th>
<thclass="col-last"scope="col">Description</th>
</tr>
</thead>
<tbody>
<trclass="alt-color">
<tdclass="col-first"><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></td>
<divclass="block">If non-zero, the identifier of the
message this message is replying to;
can be the identifier of a deleted message.</div>
</td>
</tr>
<trclass="alt-color">
<tdclass="col-first"><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></td>
<ahref="TdApi.MessageSender.html"title="class in it.tdlight.jni">TdApi.MessageSender</a> sender,
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 canBeDeletedOnlyForSelf,
boolean canBeDeletedForAllUsers,
boolean canGetStatistics,
boolean canGetMessageThread,
boolean isChannelPost,
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,
long replyInChatId,
long replyToMessageId,
long messageThreadId,
int ttl,
double ttlExpiresIn,
int viaBotUserId,
<ahref="https://docs.oracle.com/en/java/javase/13/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/13/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></th>
<tdclass="col-last">
<divclass="block">Describes a message.</div>
</td>
</tr>
<trclass="alt-color">
<thclass="col-constructor-name"scope="row"><code><spanclass="member-name-link"><ahref="#%3Cinit%3E(java.io.DataInput)">Message</a></span>​(<ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/DataInput.html"title="class or interface in java.io"class="external-link">DataInput</a> input)</code></th>
<thclass="col-first"scope="col">Modifier and Type</th>
<thclass="col-second"scope="col">Method</th>
<thclass="col-last"scope="col">Description</th>
</tr>
</thead>
<tbody>
<trclass="alt-color"id="i0">
<tdclass="col-first"><code>boolean</code></td>
<thclass="col-second"scope="row"><code><spanclass="member-name-link"><ahref="#equals(java.lang.Object)">equals</a></span>​(<ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> o)</code></th>
<thclass="col-second"scope="row"><code><spanclass="member-name-link"><ahref="#serialize(java.io.DataOutput)">serialize</a></span>​(<ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/DataOutput.html"title="class or interface in java.io"class="external-link">DataOutput</a> output)</code></th>
<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/13/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/13/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/13/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/13/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/13/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/13/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/13/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="sender">
<h3>sender</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="member-name">sender</span></div>
<divclass="block">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="member-name">sendingState</span></div>
<divclass="block">Information about 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="member-name">schedulingState</span></div>
<divclass="block">Information about the scheduling state
<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="member-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="member-name">interactionInfo</span></div>
<divclass="block">Information about interactions with
<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/13/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="member-name">authorSignature</span></div>
<divclass="block">For channel posts and anonymous group
<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/13/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="member-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="member-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="member-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> sender,
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 canBeDeletedOnlyForSelf,
boolean canBeDeletedForAllUsers,
boolean canGetStatistics,
boolean canGetMessageThread,
boolean isChannelPost,
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,
long replyInChatId,
long replyToMessageId,
long messageThreadId,
int ttl,
double ttlExpiresIn,
int viaBotUserId,
<ahref="https://docs.oracle.com/en/java/javase/13/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/13/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> - long Message identifier; unique for the
chat to which the message belongs.</dd>
<dd><code>sender</code> - MessageSender The sender of the message.</dd>
<dd><code>chatId</code> - long Chat identifier.</dd>
<dd><code>sendingState</code> - MessageSendingState Information about the sending state
of the message; may be null.</dd>
<dd><code>schedulingState</code> - MessageSchedulingState Information about the scheduling state
of the message; may be null.</dd>
<dd><code>isOutgoing</code> - boolean True, if the message is outgoing.</dd>
<dd><code>isPinned</code> - boolean True, if the message is pinned.</dd>
<dd><code>canBeEdited</code> - boolean 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> - boolean True, if the message can be forwarded.</dd>
<dd><code>canBeDeletedOnlyForSelf</code> - boolean 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> - boolean True, if the message can be deleted
for all users.</dd>
<dd><code>canGetStatistics</code> - boolean True, if the message statistics are available.</dd>
<dd><code>canGetMessageThread</code> - boolean True, if the message thread info is available.</dd>
<dd><code>isChannelPost</code> - boolean 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>containsUnreadMention</code> - boolean True, if the message contains an unread
mention for the current user.</dd>
<dd><code>date</code> - int Point in time (Unix timestamp) when
the message was sent.</dd>
<dd><code>editDate</code> - int Point in time (Unix timestamp) when
the message was last edited.</dd>
<dd><code>forwardInfo</code> - MessageForwardInfo Information about the initial message
sender; may be null.</dd>
<dd><code>interactionInfo</code> - MessageInteractionInfo Information about interactions with
the message; may be null.</dd>
<dd><code>replyInChatId</code> - long 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> - long 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> - long 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>ttl</code> - int For self-destructing messages, the
message's TTL (Time To Live), in
seconds; 0 if none. TDLib will send
updateDeleteMessages or updateMessageContent
once the TTL expires.</dd>
<dd><code>ttlExpiresIn</code> - double Time left before the message expires, in seconds.</dd>
<dd><code>viaBotUserId</code> - int If non-zero, the user identifier of
the bot through which this message was sent.</dd>
<dd><code>authorSignature</code> - String For channel posts and anonymous group
messages, optional author signature.</dd>
<dd><code>mediaAlbumId</code> - long 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> - String If non-empty, contains a human-readable
description of the reason why access
to this message must be restricted.</dd>
<dd><code>content</code> - MessageContent Content of the message.</dd>
<dd><code>replyMarkup</code> - ReplyMarkup Reply markup for the message; may be null.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="member-name">Message</span>​(<spanclass="parameters"><ahref="https://docs.oracle.com/en/java/javase/13/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/13/docs/api/java.base/java/io/IOException.html"title="class or interface in java.io"class="external-link">IOException</a></span></div>
<dlclass="notes">
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/IOException.html"title="class or interface in java.io"class="external-link">IOException</a></code></dd>
<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="member-name">serialize</span>​(<spanclass="parameters"><ahref="https://docs.oracle.com/en/java/javase/13/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/13/docs/api/java.base/java/io/IOException.html"title="class or interface in java.io"class="external-link">IOException</a></span></div>
<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>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/IOException.html"title="class or interface in java.io"class="external-link">IOException</a></code></dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="member-name">equals</span>​(<spanclass="parameters"><ahref="https://docs.oracle.com/en/java/javase/13/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/13/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/13/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/13/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/13/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>