java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatInviteLink
- Enclosing class:
- TdApi
Contains a chat invite link.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
boolean
True, if the link only creates join request.long
User identifier of an administrator created the link.int
Point in time (Unix timestamp) when the link was created.int
Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown.int
Point in time (Unix timestamp) when the link will expire; 0 if never.Chat invite link.boolean
True, if the link is primary.boolean
True, if the link was revoked.int
Number of chat members, which joined the chat using the link.int
The maximum number of members, which can join the chat using the link simultaneously; 0 if not limited.Name of the link.int
Number of pending join requests created using this link. -
Constructor Summary
ConstructorDescriptionContains a chat invite link.ChatInviteLink
(DataInput input) Contains a chat invite link.ChatInviteLink
(String inviteLink, String name, long creatorUserId, int date, int editDate, int expireDate, int memberLimit, int memberCount, int pendingJoinRequestCount, boolean createsJoinRequest, boolean isPrimary, boolean isRevoked) Contains a chat invite link. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
inviteLink
Chat invite link. -
name
Name of the link. -
creatorUserId
public long creatorUserIdUser identifier of an administrator created the link. -
date
public int datePoint in time (Unix timestamp) when the link was created. -
editDate
public int editDatePoint in time (Unix timestamp) when the link was last edited; 0 if never or unknown. -
expireDate
public int expireDatePoint in time (Unix timestamp) when the link will expire; 0 if never. -
memberLimit
public int memberLimitThe maximum number of members, which can join the chat using the link simultaneously; 0 if not limited. Always 0 if the link requires approval. -
memberCount
public int memberCountNumber of chat members, which joined the chat using the link. -
pendingJoinRequestCount
public int pendingJoinRequestCountNumber of pending join requests created using this link. -
createsJoinRequest
public boolean createsJoinRequestTrue, if the link only creates join request. If true, total number of joining members will be unlimited. -
isPrimary
public boolean isPrimaryTrue, if the link is primary. Primary invite link can't have name, expiration date, or usage limit. There is exactly one primary invite link for each administrator with canInviteUsers right at a given time. -
isRevoked
public boolean isRevokedTrue, if the link was revoked. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ChatInviteLink
public ChatInviteLink()Contains a chat invite link. -
ChatInviteLink
public ChatInviteLink(String inviteLink, String name, long creatorUserId, int date, int editDate, int expireDate, int memberLimit, int memberCount, int pendingJoinRequestCount, boolean createsJoinRequest, boolean isPrimary, boolean isRevoked) Contains a chat invite link.- Parameters:
inviteLink
- String Chat invite link.name
- String Name of the link.creatorUserId
- long User identifier of an administrator created the link.date
- int Point in time (Unix timestamp) when the link was created.editDate
- int Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown.expireDate
- int Point in time (Unix timestamp) when the link will expire; 0 if never.memberLimit
- int The maximum number of members, which can join the chat using the link simultaneously; 0 if not limited. Always 0 if the link requires approval.memberCount
- int Number of chat members, which joined the chat using the link.pendingJoinRequestCount
- int Number of pending join requests created using this link.createsJoinRequest
- boolean True, if the link only creates join request. If true, total number of joining members will be unlimited.isPrimary
- boolean True, if the link is primary. Primary invite link can't have name, expiration date, or usage limit. There is exactly one primary invite link for each administrator with canInviteUsers right at a given time.isRevoked
- boolean True, if the link was revoked.
-
ChatInviteLink
Contains a chat invite link.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-