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
| Name | Type | Required | Description |
|---|---|---|---|
ImportHead | string | yes | Beginning of the message file; up to 100 lines. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | IMPORT_FORMAT_UNRECOGNIZED | The specified chat export file was exported from an unsupported chat app. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.checkHistoryImport#43fe19f3