Package org.drinkless.tdlib
Class TdApi.ChatInviteLink
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.ChatInviteLink
- Enclosing class:
- TdApi
Contains a chat invite link.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.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.int
Number of chat members, which joined the chat using the link, but have already left because of expired subscription; for subscription links only.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.Information about subscription plan that is applied to the users joining the chat by the link; may be null if the link doesn't require subscription. -
Constructor Summary
ConstructorsConstructorDescriptionContains a chat invite link.ChatInviteLink
(String inviteLink, String name, long creatorUserId, int date, int editDate, int expirationDate, TdApi.StarSubscriptionPricing subscriptionPricing, int memberLimit, int memberCount, int expiredMemberCount, int pendingJoinRequestCount, boolean createsJoinRequest, boolean isPrimary, boolean isRevoked) Contains a chat invite link. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
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. -
expirationDate
public int expirationDatePoint in time (Unix timestamp) when the link will expire; 0 if never. -
subscriptionPricing
Information about subscription plan that is applied to the users joining the chat by the link; may be null if the link doesn't require subscription. -
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. -
expiredMemberCount
public int expiredMemberCountNumber of chat members, which joined the chat using the link, but have already left because of expired subscription; for subscription links only. -
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 CONSTRUCTORIdentifier uniquely determining type of the object.- 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 expirationDate, TdApi.StarSubscriptionPricing subscriptionPricing, int memberLimit, int memberCount, int expiredMemberCount, 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.subscriptionPricing
- Information about subscription plan that is applied to the users joining the chat by the link; may be null if the link doesn't require subscription.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.expiredMemberCount
- Number of chat members, which joined the chat using the link, but have already left because of expired subscription; for subscription links only.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 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
-