# messages.checkHistoryImport

Obtains information about a chat export file, generated by a foreign chat app, [click here for more info about imported chats »](/api/import.md).

```tl
messages.historyImportParsed#5e0fb7b9 flags:# pm:flags.0?true group:flags.1?true title:flags.2?string = messages.HistoryImportParsed;
---functions---
messages.checkHistoryImport#43fe19f3 import_head:string = messages.HistoryImportParsed;
```

### Parameters

| Name | Type | Description |
| --- | :---: | --- |
| **import\_head** | [string](/type/string.md) | Beginning of the message file; up to 100 lines. |

### Result
[messages.HistoryImportParsed](/type/messages.HistoryImportParsed.md)

### Only users can use this method

### Possible errors

| Code | Type | Description |
| --- | --- | --- |
| 400 | IMPORT\_FORMAT\_UNRECOGNIZED | The specified chat export file was exported from an unsupported chat app. |

### Related pages

#### [Imported messages](/api/import.md)
Telegram allows importing messages and media from foreign chat apps.