public static class TdApi.CreateChatInviteLink extends TdApi.Function<TdApi.ChatInviteLink>
Returns ChatInviteLink
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
createsJoinRequest
Pass true if users joining the chat via the link need to be approved by chat administrators.
|
int |
expirationDate
Point in time (Unix timestamp) when the link will expire; pass 0 if never.
|
int |
memberLimit
The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited.
|
java.lang.String |
name
Invite link name; 0-32 characters.
|
| Constructor and Description |
|---|
CreateChatInviteLink()
Default constructor for a function, which creates a new invite link for a chat.
|
CreateChatInviteLink(long chatId,
java.lang.String name,
int expirationDate,
int memberLimit,
boolean createsJoinRequest)
Creates a function, which creates a new invite link for a chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public java.lang.String name
public int expirationDate
public int memberLimit
public boolean createsJoinRequest
public static final int CONSTRUCTOR
public CreateChatInviteLink()
Returns ChatInviteLink
public CreateChatInviteLink(long chatId,
java.lang.String name,
int expirationDate,
int memberLimit,
boolean createsJoinRequest)
Returns ChatInviteLink
chatId - Chat identifier.name - Invite link name; 0-32 characters.expirationDate - Point in time (Unix timestamp) when the link will expire; pass 0 if never.memberLimit - The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited.createsJoinRequest - Pass true if users joining the chat via the link need to be approved by chat administrators. In this case, memberLimit must be 0.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object