Skip to content

deleteChatHistory

Sahri Riza Umami edited this page Jul 1, 2018 · 5 revisions

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

deleteChatHistory(chat_id, remove_from_chat_list, callback, data)
Field Type Description
chat_id int53 Chat identifier.
remove_from_chat_list Bool Pass true if the chat should be removed from the chats list.

Example

  • Deletes all messages in the chat 1234567890 and remove chat from the chat list.

    deleteChatHistory(1234567890, 1)

    Response:

    {
      ["@type"] = "ok"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally