DeleteChatHistory constructor

const DeleteChatHistory({
  1. required int chatId,
  2. required bool removeFromChatList,
  3. required bool revoke,
})

DeleteChatHistory (deleteChatHistory) - TDLib function

Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat.

  • chatId: Chat identifier.
  • removeFromChatList: Pass true to remove the chat from all chat lists.
  • revoke: Pass true to delete chat history for all users.

Ok is returned on completion.

Implementation

const DeleteChatHistory({
  required this.chatId,
  required this.removeFromChatList,
  required this.revoke,
});