Package org.drinkless.tdlib
Class TdApi.EditChatInviteLink
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.EditChatInviteLink
-
- Enclosing class:
- TdApi
public static class TdApi.EditChatInviteLink extends TdApi.Function
Edits a non-primary invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right in the chat for own links and owner privileges for other links.Returns
ChatInviteLink
-
-
Field Summary
Fields Modifier and Type Field Description longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.booleancreatesJoinRequestTrue, if the link only creates join request.intexpirationDatePoint in time (Unix timestamp) when the link will expire; pass 0 if never.StringinviteLinkInvite link to be edited.intmemberLimitThe maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited.StringnameInvite link name; 0-32 characters.
-
Constructor Summary
Constructors Constructor Description EditChatInviteLink()Default constructor for a function, which edits a non-primary invite link for a chat.EditChatInviteLink(long chatId, String inviteLink, String name, int expirationDate, int memberLimit, boolean createsJoinRequest)Creates a function, which edits a non-primary invite link for a chat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
chatId
public long chatId
Chat identifier.
-
inviteLink
public String inviteLink
Invite link to be edited.
-
name
public String name
Invite link name; 0-32 characters.
-
expirationDate
public int expirationDate
Point in time (Unix timestamp) when the link will expire; pass 0 if never.
-
memberLimit
public int memberLimit
The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited.
-
createsJoinRequest
public boolean createsJoinRequest
True, if the link only creates join request. If true, memberLimit must not be specified.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EditChatInviteLink
public EditChatInviteLink()
Default constructor for a function, which edits a non-primary invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right in the chat for own links and owner privileges for other links.Returns
ChatInviteLink
-
EditChatInviteLink
public EditChatInviteLink(long chatId, String inviteLink, String name, int expirationDate, int memberLimit, boolean createsJoinRequest)Creates a function, which edits a non-primary invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right in the chat for own links and owner privileges for other links.Returns
ChatInviteLink- Parameters:
chatId- Chat identifier.inviteLink- Invite link to be edited.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- True, if the link only creates join request. If true, memberLimit must not be specified.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-