- Enclosing class:
- TdApi
Creates a new invite link for a chat.
Available for basic groups, supergroups,
and channels. Requires administrator
privileges and canInviteUsers right
in the chat.
Returns
ChatInviteLink
-
Field Summary
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
boolean
Pass true if users joining the chat via the link need to be approved by chat administrators.int
Point in time (Unix timestamp) when the link will expire; pass 0 if never.int
The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited.Invite link name; 0-32 characters. -
Constructor Summary
ConstructorDescriptionCreates a new invite link for a chat.CreateChatInviteLink
(long chatId, String name, int expirationDate, int memberLimit, boolean createsJoinRequest) Creates a new invite link for a chat.CreateChatInviteLink
(DataInput input) Creates a new invite link for a chat. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdChat identifier. -
name
Invite link name; 0-32 characters. -
expirationDate
public int expirationDatePoint in time (Unix timestamp) when the link will expire; pass 0 if never. -
memberLimit
public int memberLimitThe maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited. -
createsJoinRequest
public boolean createsJoinRequestPass true if users joining the chat via the link need to be approved by chat administrators. In this case, memberLimit must be 0. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
CreateChatInviteLink
public CreateChatInviteLink()Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right in the chat. ReturnsChatInviteLink
-
CreateChatInviteLink
public CreateChatInviteLink(long chatId, String name, int expirationDate, int memberLimit, boolean createsJoinRequest) Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right in the chat. ReturnsChatInviteLink
- Parameters:
chatId
- long Chat identifier.name
- String Invite link name; 0-32 characters.expirationDate
- int Point in time (Unix timestamp) when the link will expire; pass 0 if never.memberLimit
- int The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited.createsJoinRequest
- boolean Pass true if users joining the chat via the link need to be approved by chat administrators. In this case, memberLimit must be 0.
-
CreateChatInviteLink
Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right in the chat. ReturnsChatInviteLink
- 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()
-