- 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
FieldsModifier and TypeFieldDescriptionlong
Chat identifier.static final int
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 by the link simultaneously; 0-99999; pass 0 if not limited. -
Constructor Summary
ConstructorsConstructorDescriptionEdits a non-primary invite link for a chat.EditChatInviteLink
(long chatId, String inviteLink, int expireDate, int memberLimit) Edits a non-primary invite link for a chat.EditChatInviteLink
(DataInput input) Edits a non-primary 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. -
inviteLink
Invite link to be edited. -
expireDate
public int expireDatePoint 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 by the link simultaneously; 0-99999; pass 0 if not limited. -
CONSTRUCTOR
public static final int CONSTRUCTOR- 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
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
- long Chat identifier.inviteLink
- String Invite link to be edited.expireDate
- 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 by the link simultaneously; 0-99999; pass 0 if not limited.
-
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
- 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()
-