TDLib v0.0.2 TDLib.Method.DeleteChatHistory View Source

Deletes all messages in the chat only for the user. Cannot be used in channels and public supergroups. Returns object_ptr.

NameTypeDescription
chat_idstringChat identifier.
remove_from_chat_listboolPass true if the chat should be removed from the chats list.

More details on telegram’s documentation.