Class TdApi.DeleteChatHistory
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.DeleteChatHistory
- Enclosing class:
- TdApi
Deletes all messages in the chat. Use chat.canBeDeletedOnlyForSelf and chat.canBeDeletedForAllUsers fields to find whether and how the method can be applied to the chat.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
Identifier uniquely determining type of the object.boolean
Pass true to remove the chat from all chat lists.boolean
Pass true to delete chat history for all users. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which deletes all messages in the chat.DeleteChatHistory
(long chatId, boolean removeFromChatList, boolean revoke) Creates a function, which deletes all messages in the chat. -
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. -
removeFromChatList
public boolean removeFromChatListPass true to remove the chat from all chat lists. -
revoke
public boolean revokePass true to delete chat history for all users. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
DeleteChatHistory
public DeleteChatHistory()Default constructor for a function, which deletes all messages in the chat. Use chat.canBeDeletedOnlyForSelf and chat.canBeDeletedForAllUsers fields to find whether and how the method can be applied to the chat.Returns
Ok
-
DeleteChatHistory
public DeleteChatHistory(long chatId, boolean removeFromChatList, boolean revoke) Creates a function, which deletes all messages in the chat. Use chat.canBeDeletedOnlyForSelf and chat.canBeDeletedForAllUsers fields to find whether and how the method can be applied to the chat.Returns
Ok
- Parameters:
chatId
- Chat identifier.removeFromChatList
- Pass true to remove the chat from all chat lists.revoke
- Pass true to delete chat history for all users.
-
-
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
-