View Source ExTDLib.Method.DeleteChatHistory (ExTDLib v0.0.4)

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. Returns object_ptr<Ok>.

NameTypeDescription
chat_idstringChat identifier.
remove_from_chat_listboolPass true to remove the chat from all chat lists.
revokeboolPass true to delete chat history for all users.

More details on telegram's documentation.