Skip to main content

messages.checkHistoryImport

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

func (c *Client) MessagesCheckHistoryImport(ctx context.Context, importhead string) (*MessagesHistoryImportParsed, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesCheckHistoryImport(ctx, importhead)
if err != nil {
return err
}
_ = res // *MessagesHistoryImportParsed
return nil
})

Parameters

NameTypeRequiredDescription
ImportHeadstringyesBeginning of the message file; up to 100 lines.

Returns

*MessagesHistoryImportParsed

Possible errors

CodeTypeDescription
400IMPORT_FORMAT_UNRECOGNIZEDThe specified chat export file was exported from an unsupported chat app.

References