<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">Emoji status to be shown instead of the default Telegram Premium badge; may be null.</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>
<divclass="block">True, if the user is verified.</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>
<divclass="block">IETF language tag of the user's language; only available to bots.</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="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>
<divclass="block">Profile photo of the user; may be null.</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="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> firstName,
<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> lastName,
<ahref="TdApi.Usernames.html"title="class in it.tdlight.jni">TdApi.Usernames</a> usernames,
<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> phoneNumber,
<ahref="TdApi.UserStatus.html"title="class in it.tdlight.jni">TdApi.UserStatus</a> status,
<ahref="TdApi.ProfilePhoto.html"title="class in it.tdlight.jni">TdApi.ProfilePhoto</a> profilePhoto,
<ahref="TdApi.EmojiStatus.html"title="class in it.tdlight.jni">TdApi.EmojiStatus</a> emojiStatus,
boolean isContact,
boolean isMutualContact,
boolean isVerified,
boolean isPremium,
boolean isSupport,
<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,
boolean haveAccess,
<ahref="TdApi.UserType.html"title="class in it.tdlight.jni">TdApi.UserType</a> 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> languageCode,
boolean addedToAttachmentMenu)</code></div>
<divclass="col-last odd-row-color">
<divclass="block">Represents a user.</div>
</div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(java.io.DataInput)"class="member-name-link">User</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="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">firstName</span></div>
<divclass="block">First name of the user.</div>
</section>
</li>
<li>
<sectionclass="detail"id="lastName">
<h3>lastName</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">lastName</span></div>
<divclass="block">Last name of the user.</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 user; may be null.</div>
</section>
</li>
<li>
<sectionclass="detail"id="phoneNumber">
<h3>phoneNumber</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">phoneNumber</span></div>
<divclass="block">Phone number of the user.</div>
</section>
</li>
<li>
<sectionclass="detail"id="status">
<h3>status</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.UserStatus.html"title="class in it.tdlight.jni">TdApi.UserStatus</a></span> <spanclass="element-name">status</span></div>
<divclass="block">Current online status of the user.</div>
</section>
</li>
<li>
<sectionclass="detail"id="profilePhoto">
<h3>profilePhoto</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.ProfilePhoto.html"title="class in it.tdlight.jni">TdApi.ProfilePhoto</a></span> <spanclass="element-name">profilePhoto</span></div>
<divclass="block">Profile photo of the user; may be null.</div>
</section>
</li>
<li>
<sectionclass="detail"id="emojiStatus">
<h3>emojiStatus</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.EmojiStatus.html"title="class in it.tdlight.jni">TdApi.EmojiStatus</a></span> <spanclass="element-name">emojiStatus</span></div>
<divclass="block">Emoji status to be shown instead of the default Telegram Premium badge; may be null. For Telegram Premium users only.</div>
<divclass="block">True, if the user is Telegram support account.</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, it contains a human-readable description of the reason why access to this user must be restricted.</div>
<divclass="block">If false, the user is inaccessible, and the only information known about the user is inside this class. Identifier of the user can't be passed to any method.</div>
</section>
</li>
<li>
<sectionclass="detail"id="type">
<h3>type</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.UserType.html"title="class in it.tdlight.jni">TdApi.UserType</a></span> <spanclass="element-name">type</span></div>
<divclass="block">Type of the user.</div>
</section>
</li>
<li>
<sectionclass="detail"id="languageCode">
<h3>languageCode</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">languageCode</span></div>
<divclass="block">IETF language tag of the user's language; only available to bots.</div>
<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> firstName,
<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> lastName,
<ahref="TdApi.Usernames.html"title="class in it.tdlight.jni">TdApi.Usernames</a> usernames,
<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> phoneNumber,
<ahref="TdApi.UserStatus.html"title="class in it.tdlight.jni">TdApi.UserStatus</a> status,
<ahref="TdApi.ProfilePhoto.html"title="class in it.tdlight.jni">TdApi.ProfilePhoto</a> profilePhoto,
<ahref="TdApi.EmojiStatus.html"title="class in it.tdlight.jni">TdApi.EmojiStatus</a> emojiStatus,
boolean isContact,
boolean isMutualContact,
boolean isVerified,
boolean isPremium,
boolean isSupport,
<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,
boolean haveAccess,
<ahref="TdApi.UserType.html"title="class in it.tdlight.jni">TdApi.UserType</a> 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> languageCode,
boolean addedToAttachmentMenu)</span></div>
<divclass="block">Represents a user.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>id</code> - User identifier.</dd>
<dd><code>firstName</code> - First name of the user.</dd>
<dd><code>lastName</code> - Last name of the user.</dd>
<dd><code>usernames</code> - Usernames of the user; may be null.</dd>
<dd><code>phoneNumber</code> - Phone number of the user.</dd>
<dd><code>status</code> - Current online status of the user.</dd>
<dd><code>profilePhoto</code> - Profile photo of the user; may be null.</dd>
<dd><code>emojiStatus</code> - Emoji status to be shown instead of the default Telegram Premium badge; may be null. For Telegram Premium users only.</dd>
<dd><code>isContact</code> - The user is a contact of the current user.</dd>
<dd><code>isMutualContact</code> - The user is a contact of the current user and the current user is a contact of the user.</dd>
<dd><code>isVerified</code> - True, if the user is verified.</dd>
<dd><code>isPremium</code> - True, if the user is a Telegram Premium user.</dd>
<dd><code>isSupport</code> - True, if the user is Telegram support account.</dd>
<dd><code>restrictionReason</code> - If non-empty, it contains a human-readable description of the reason why access to this user must be restricted.</dd>
<dd><code>isScam</code> - True, if many users reported this user as a scam.</dd>
<dd><code>isFake</code> - True, if many users reported this user as a fake account.</dd>
<dd><code>haveAccess</code> - If false, the user is inaccessible, and the only information known about the user is inside this class. Identifier of the user can't be passed to any method.</dd>
<dd><code>type</code> - Type of the user.</dd>
<dd><code>languageCode</code> - IETF language tag of the user's language; only available to bots.</dd>
<dd><code>addedToAttachmentMenu</code> - True, if the user added the current bot to attachment menu; only available to bots.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">User</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 user.</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>