Layer 220
MessagesCheckHistoryImport
Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats.
method
Users
messages.checkHistoryImport#43fe19f3 import_head:string = messages.HistoryImportParsed;
Parameters
| Name | Type | Description |
|---|---|---|
| ImportHead | string | Beginning of the message file; up to 100 lines. |
Returns
messages.HistoryImportParsedPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | IMPORT_FORMAT_UNRECOGNIZED | The specified chat export file was exported from an unsupported chat app. |
Gogram Example
// MessagesCheckHistoryImport - positional arguments result, err := client.MessagesCheckHistoryImport("...") if err != nil { // handle error } // result is *tg.MessagesHistoryImportParsed