Closed chenyu1990 closed 8 months ago
Use deleteChatHistory
.
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
It seems that permission is required.
And it’s not an offline request
It is exactly the method behind the "Clear history" menu option.
okay, thanks.
Hi @levlam can you assign this task to me so I can update the documentation file with the method to be used in order to clear all chat history from locale history.
What do you mean?
The Option in the Chat History Menu can solve this.
I guess it would be great to update the documentation to include instructions on how to delete local chat history and also provide step-by-step instructions on how to perform the deletion
It is exactly the method behind the "Clear history" menu option.
it's not work...
got error:
400 Can't delete history of chat -1001487844290 only for self
This means that you can't clear history of the chat in any app: "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."
This means that you can't clear history of the chat in any app: "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."
so. How to use this feature with supergroup? deleteChatHistory can't do it.
It is impossible to delete history in non-owned public supergroups.
like this