Package org.drinkless.tdlib
Class 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
FieldsModifier and TypeFieldDescriptionlongChat identifier.static final intIdentifier uniquely determining type of the object.booleanPass true to remove the chat from all chat lists.booleanPass true to delete chat history for all users. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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 TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-