Package org.drinkless.tdlib
Class TdApi.DeleteChatHistory
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.DeleteChatHistory
-
- Enclosing class:
- TdApi
public static class TdApi.DeleteChatHistory extends TdApi.Function
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
Fields Modifier and Type Field Description longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanremoveFromChatListPass true if the chat needs to be removed from the chat list.booleanrevokePass true to delete chat history for all users.
-
Constructor Summary
Constructors Constructor Description DeleteChatHistory()Default 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
chatId
public long chatId
Chat identifier.
-
removeFromChatList
public boolean removeFromChatList
Pass true if the chat needs to be removed from the chat list.
-
revoke
public boolean revoke
Pass true to delete chat history for all users.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 if the chat needs to be removed from the chat list.revoke- Pass true to delete chat history for all users.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-