messages.checkHistoryImport

Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats ».

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 Beginning of the message file; up to 100 lines.

Result

messages.HistoryImportParsed

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

Telegram allows importing messages and media from foreign chat apps.