Class TdApi.DeleteAllRevokedChatInviteLinks
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.DeleteAllRevokedChatInviteLinks
- Enclosing class:
- TdApi
Deletes all revoked chat invite links created by a given chat administrator. Requires administrator privileges and canInviteUsers right in the chat for own links and owner privileges for other links.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
Identifier uniquely determining type of the object.long
User identifier of a chat administrator, which links will be deleted. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which deletes all revoked chat invite links created by a given chat administrator.DeleteAllRevokedChatInviteLinks
(long chatId, long creatorUserId) Creates a function, which deletes all revoked chat invite links created by a given chat administrator. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdChat identifier. -
creatorUserId
public long creatorUserIdUser identifier of a chat administrator, which links will be deleted. Must be an identifier of the current user for non-owner. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
DeleteAllRevokedChatInviteLinks
public DeleteAllRevokedChatInviteLinks()Default constructor for a function, which deletes all revoked chat invite links created by a given chat administrator. Requires administrator privileges and canInviteUsers right in the chat for own links and owner privileges for other links.Returns
Ok
-
DeleteAllRevokedChatInviteLinks
public DeleteAllRevokedChatInviteLinks(long chatId, long creatorUserId) Creates a function, which deletes all revoked chat invite links created by a given chat administrator. Requires administrator privileges and canInviteUsers right in the chat for own links and owner privileges for other links.Returns
Ok
- Parameters:
chatId
- Chat identifier.creatorUserId
- User identifier of a chat administrator, which links will be deleted. Must be an identifier of the current user for non-owner.
-
-
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
-