check_history_import()

async Client.check_history_import()

Check if a chat history export file can be imported.

Usable by Users Bots
Parameters:

import_head (str) – The first part of the chat history export text (for format detection).

Returns:

HistoryImportParsed – Info about the importable history.

Example

result = await app.check_history_import("WhatsApp Chat with John\n01/01/2023...")