Package org.drinkless.tdlib
Class TdApi.ChatInviteLink
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.ChatInviteLink
-
- Enclosing class:
- TdApi
public static class TdApi.ChatInviteLink extends TdApi.Object
Contains a chat invite link.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.booleancreatesJoinRequestTrue, if the link only creates join request.longcreatorUserIdUser identifier of an administrator created the link.intdatePoint in time (Unix timestamp) when the link was created.inteditDatePoint in time (Unix timestamp) when the link was last edited; 0 if never or unknown.intexpirationDatePoint in time (Unix timestamp) when the link will expire; 0 if never.StringinviteLinkChat invite link.booleanisPrimaryTrue, if the link is primary.booleanisRevokedTrue, if the link was revoked.intmemberCountNumber of chat members, which joined the chat using the link.intmemberLimitThe maximum number of members, which can join the chat using the link simultaneously; 0 if not limited.StringnameName of the link.intpendingJoinRequestCountNumber of pending join requests created using this link.
-
Constructor Summary
Constructors Constructor Description ChatInviteLink()Contains a chat invite link.ChatInviteLink(String inviteLink, String name, long creatorUserId, int date, int editDate, int expirationDate, int memberLimit, int memberCount, int pendingJoinRequestCount, boolean createsJoinRequest, boolean isPrimary, boolean isRevoked)Contains a chat invite link.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
inviteLink
public String inviteLink
Chat invite link.
-
name
public String name
Name of the link.
-
creatorUserId
public long creatorUserId
User identifier of an administrator created the link.
-
date
public int date
Point in time (Unix timestamp) when the link was created.
-
editDate
public int editDate
Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown.
-
expirationDate
public int expirationDate
Point in time (Unix timestamp) when the link will expire; 0 if never.
-
memberLimit
public int memberLimit
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
public int memberCount
Number of chat members, which joined the chat using the link.
-
pendingJoinRequestCount
public int pendingJoinRequestCount
Number of pending join requests created using this link.
-
createsJoinRequest
public boolean createsJoinRequest
True, if the link only creates join request. If true, total number of joining members will be unlimited.
-
isPrimary
public boolean isPrimary
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
public boolean isRevoked
True, if the link was revoked.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChatInviteLink
public ChatInviteLink()
Contains a chat invite link.
-
ChatInviteLink
public ChatInviteLink(String inviteLink, String name, long creatorUserId, int date, int editDate, int expirationDate, int memberLimit, int memberCount, int pendingJoinRequestCount, boolean createsJoinRequest, boolean isPrimary, boolean isRevoked)
Contains a chat invite link.- Parameters:
inviteLink- Chat invite link.name- Name of the link.creatorUserId- User identifier of an administrator created the link.date- Point in time (Unix timestamp) when the link was created.editDate- Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown.expirationDate- Point in time (Unix timestamp) when the link will expire; 0 if never.memberLimit- 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- Number of chat members, which joined the chat using the link.pendingJoinRequestCount- Number of pending join requests created using this link.createsJoinRequest- True, if the link only creates join request. If true, total number of joining members will be unlimited.isPrimary- 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- True, if the link was revoked.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-