<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="block">Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member.</div>
<divclass="block">Number of members in the supergroup or channel; 0 if unknown.</div>
</div>
<divclass="col-first odd-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>
<ahref="TdApi.Usernames.html"title="class in it.tdlight.jni">TdApi.Usernames</a> usernames,
int date,
<ahref="TdApi.ChatMemberStatus.html"title="class in it.tdlight.jni">TdApi.ChatMemberStatus</a> status,
int memberCount,
boolean hasLinkedChat,
boolean hasLocation,
boolean signMessages,
boolean joinToSendMessages,
boolean joinByRequest,
boolean isSlowModeEnabled,
boolean isChannel,
boolean isBroadcastGroup,
boolean isForum,
boolean isVerified,
<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,
boolean isScam,
boolean isFake)</code></div>
<divclass="col-last odd-row-color">
<divclass="block">Represents a supergroup or channel with zero or more members (subscribers in the case of channels).</div>
</div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(java.io.DataInput)"class="member-name-link">Supergroup</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-last even-row-color">
<divclass="block">Represents a supergroup or channel with zero or more members (subscribers in the case of channels).</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">Supergroup or channel identifier.</div>
</section>
</li>
<li>
<sectionclass="detail"id="usernames">
<h3>usernames</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.Usernames.html"title="class in it.tdlight.jni">TdApi.Usernames</a></span> <spanclass="element-name">usernames</span></div>
<divclass="block">Usernames of the supergroup or channel; may be null.</div>
<divclass="block">Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member.</div>
</section>
</li>
<li>
<sectionclass="detail"id="status">
<h3>status</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.ChatMemberStatus.html"title="class in it.tdlight.jni">TdApi.ChatMemberStatus</a></span> <spanclass="element-name">status</span></div>
<divclass="block">Status of the current user in the supergroup or channel; custom title will always be empty.</div>
<divclass="block">Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, getUserPrivacySettingRules, or in chatFolderInviteLinkInfo.missingChatIds.</div>
<divclass="block">True, if users need to join the supergroup before they can send messages. Always true for channels and non-discussion supergroups.</div>
<divclass="block">True, if all users directly joining the supergroup need to be approved by supergroup administrators. Always false for channels and supergroups without username, location, or a linked chat.</div>
<divclass="block">True, if the supergroup is a broadcast group, i.e. only administrators can send messages and there is no limit on the number of members.</div>
<divclass="block">True, if the supergroup or channel is verified.</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 supergroup or channel must be restricted.</div>
<divclass="block">Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers.</div>
<ahref="TdApi.Usernames.html"title="class in it.tdlight.jni">TdApi.Usernames</a> usernames,
int date,
<ahref="TdApi.ChatMemberStatus.html"title="class in it.tdlight.jni">TdApi.ChatMemberStatus</a> status,
int memberCount,
boolean hasLinkedChat,
boolean hasLocation,
boolean signMessages,
boolean joinToSendMessages,
boolean joinByRequest,
boolean isSlowModeEnabled,
boolean isChannel,
boolean isBroadcastGroup,
boolean isForum,
boolean isVerified,
<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,
boolean isScam,
boolean isFake)</span></div>
<divclass="block">Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>id</code> - Supergroup or channel identifier.</dd>
<dd><code>usernames</code> - Usernames of the supergroup or channel; may be null.</dd>
<dd><code>date</code> - Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member.</dd>
<dd><code>status</code> - Status of the current user in the supergroup or channel; custom title will always be empty.</dd>
<dd><code>memberCount</code> - Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, getUserPrivacySettingRules, or in chatFolderInviteLinkInfo.missingChatIds.</dd>
<dd><code>hasLinkedChat</code> - True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel.</dd>
<dd><code>hasLocation</code> - True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup.</dd>
<dd><code>signMessages</code> - True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels.</dd>
<dd><code>joinToSendMessages</code> - True, if users need to join the supergroup before they can send messages. Always true for channels and non-discussion supergroups.</dd>
<dd><code>joinByRequest</code> - True, if all users directly joining the supergroup need to be approved by supergroup administrators. Always false for channels and supergroups without username, location, or a linked chat.</dd>
<dd><code>isSlowModeEnabled</code> - True, if the slow mode is enabled in the supergroup.</dd>
<dd><code>isChannel</code> - True, if the supergroup is a channel.</dd>
<dd><code>isBroadcastGroup</code> - True, if the supergroup is a broadcast group, i.e. only administrators can send messages and there is no limit on the number of members.</dd>
<dd><code>isForum</code> - True, if the supergroup must be shown as a forum by default.</dd>
<dd><code>isVerified</code> - True, if the supergroup or channel is verified.</dd>
<dd><code>restrictionReason</code> - If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted.</dd>
<dd><code>isScam</code> - True, if many users reported this supergroup or channel as a scam.</dd>
<dd><code>isFake</code> - True, if many users reported this supergroup or channel as a fake account.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Supergroup</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">Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers.</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>