- Enclosing class:
- TdApi
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
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
Identifier uniquely determining type of the object.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.Invite link to be edited.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
ConstructorDescriptionEdits a non-primary invite link for a chat.EditChatInviteLink
(long chatId, String inviteLink, String name, int expirationDate, int memberLimit, boolean createsJoinRequest) Edits a non-primary invite link for a chat.EditChatInviteLink
(DataInput input) Edits a non-primary invite link for a chat. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods 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. -
inviteLink
Invite link to be edited. -
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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
EditChatInviteLink
public EditChatInviteLink()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) 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
- Pass true if users joining the chat via the link need to be approved by chat administrators. In this case, memberLimit must be 0.Returns
ChatInviteLink
-
EditChatInviteLink
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:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-