Class 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 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.