java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatInviteLinkInfo
- Enclosing class:
- TdApi
Contains information about a chat invite link.
-
Field Summary
Modifier and TypeFieldDescriptionint
Identifier of the accent color for chat title and background of chat photo.int
If non-zero, the amount of time for which read access to the chat will remain available, in seconds.long
Chat identifier of the invite link; 0 if the user has no access to the chat before joining.static final int
Identifier uniquely determining type of the object.boolean
True, if the link only creates join request.Chat description.boolean
True, if many users reported this chat as a fake account.boolean
True, if the chat is a public supergroup or channel, i.e.boolean
True, if many users reported this chat as a scam.boolean
True, if the chat is verified.int
Number of members in the chat.long[]
User identifiers of some chat members that may be known to the current user.Chat photo; may be null.Title of the chat.Type of the chat. -
Constructor Summary
ConstructorDescriptionContains information about a chat invite link.ChatInviteLinkInfo
(long chatId, int accessibleFor, TdApi.InviteLinkChatType type, String title, TdApi.ChatPhotoInfo photo, int accentColorId, String description, int memberCount, long[] memberUserIds, boolean createsJoinRequest, boolean isPublic, boolean isVerified, boolean isScam, boolean isFake) Contains information about a chat invite link.ChatInviteLinkInfo
(DataInput input) Contains information about a chat invite link. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
chatId
public long chatIdChat identifier of the invite link; 0 if the user has no access to the chat before joining. -
accessibleFor
public int accessibleForIf non-zero, the amount of time for which read access to the chat will remain available, in seconds. -
type
Type of the chat. -
title
Title of the chat. -
photo
Chat photo; may be null. -
accentColorId
public int accentColorIdIdentifier of the accent color for chat title and background of chat photo. -
description
Chat description. -
memberCount
public int memberCountNumber of members in the chat. -
memberUserIds
public long[] memberUserIdsUser identifiers of some chat members that may be known to the current user. -
createsJoinRequest
public boolean createsJoinRequestTrue, if the link only creates join request. -
isPublic
public boolean isPublicTrue, if the chat is a public supergroup or channel, i.e. it has a username or it is a location-based supergroup. -
isVerified
public boolean isVerifiedTrue, if the chat is verified. -
isScam
public boolean isScamTrue, if many users reported this chat as a scam. -
isFake
public boolean isFakeTrue, if many users reported this chat as a fake account. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ChatInviteLinkInfo
public ChatInviteLinkInfo()Contains information about a chat invite link. -
ChatInviteLinkInfo
public ChatInviteLinkInfo(long chatId, int accessibleFor, TdApi.InviteLinkChatType type, String title, TdApi.ChatPhotoInfo photo, int accentColorId, String description, int memberCount, long[] memberUserIds, boolean createsJoinRequest, boolean isPublic, boolean isVerified, boolean isScam, boolean isFake) Contains information about a chat invite link.- Parameters:
chatId
- Chat identifier of the invite link; 0 if the user has no access to the chat before joining.accessibleFor
- If non-zero, the amount of time for which read access to the chat will remain available, in seconds.type
- Type of the chat.title
- Title of the chat.photo
- Chat photo; may be null.accentColorId
- Identifier of the accent color for chat title and background of chat photo.description
- Chat description.memberCount
- Number of members in the chat.memberUserIds
- User identifiers of some chat members that may be known to the current user.createsJoinRequest
- True, if the link only creates join request.isPublic
- True, if the chat is a public supergroup or channel, i.e. it has a username or it is a location-based supergroup.isVerified
- True, if the chat is verified.isScam
- True, if many users reported this chat as a scam.isFake
- True, if many users reported this chat as a fake account.
-
ChatInviteLinkInfo
Contains information about a chat invite link.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-