Class ChatInviteLink
java.lang.Object
io.micronaut.chatbots.telegram.api.ChatInviteLink
Represents an invite link for a chat.
ChatInviteLink
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Integer
@Nullable Integer
@Nullable String
getName()
@Nullable Integer
void
setCreatesJoinRequest
(Boolean createsJoinRequest) void
setCreator
(User creator) void
setExpireDate
(@Nullable Integer expireDate) void
setInviteLink
(String inviteLink) void
setMemberLimit
(@Nullable Integer memberLimit) void
void
setPendingJoinRequestCount
(@Nullable Integer pendingJoinRequestCount) void
setPrimary
(Boolean primary) void
setRevoked
(Boolean revoked)
-
Constructor Details
-
ChatInviteLink
public ChatInviteLink()
-
-
Method Details
-
getInviteLink
- Returns:
- The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with "...";
-
setInviteLink
- Parameters:
inviteLink
- The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with "...";
-
getCreator
- Returns:
- Creator of the link.
-
setCreator
- Parameters:
creator
- Creator of the link.
-
getCreatesJoinRequest
- Returns:
- True, if users joining the chat via the link need to be approved by chat administrators.
-
setCreatesJoinRequest
- Parameters:
createsJoinRequest
- True, if users joining the chat via the link need to be approved by chat administrators.
-
isPrimary
- Returns:
- True, if the link is primary.
-
setPrimary
- Parameters:
primary
- True, if the link is primary.
-
isRevoked
- Returns:
- True, if the link is revoked.
-
setRevoked
- Parameters:
revoked
- True, if the link is revoked.
-
getName
- Returns:
- Invite link name
-
setName
- Parameters:
name
- Invite link name
-
getExpireDate
- Returns:
- Point in time (Unix timestamp) when the link will expire or has been expired.
-
setExpireDate
- Parameters:
expireDate
- Point in time (Unix timestamp) when the link will expire or has been expired.
-
getMemberLimit
- Returns:
- The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999.
-
setMemberLimit
- Parameters:
memberLimit
- The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999.
-
getPendingJoinRequestCount
- Returns:
- Number of pending join requests created using this link.
-
setPendingJoinRequestCount
- Parameters:
pendingJoinRequestCount
- Number of pending join requests created using this link.
-