check_history_import_peer()

async Client.check_history_import_peer()

Check if a chat history can be imported into a specific chat.

Usable by Users Bots
Parameters:

chat_id (int | str) – The chat to check import support for.

Returns:

CheckedHistoryImportPeer – The import check result.

Example

result = await app.check_history_import_peer(chat_id)