CRMchat APIBeta
Telegram APIMessages

messages.startHistoryImport

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/messages.startHistoryImport

Complete the history import process, importing all messages into the chat. To be called only after initializing the import with messages.RawInitHistoryImportRequest and uploading all files using messages.RawUploadImportedMediaRequest.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

workspaceId*string

Workspace ID

accountId*string

Telegram account ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

params*

Complete the history import process, importing all messages into the chat. To be called only after initializing the import with messages.RawInitHistoryImportRequest and uploading all files using messages.RawUploadImportedMediaRequest.

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/messages.startHistoryImport" \  -H "Content-Type: application/json" \  -d '{    "params": {      "peer": {        "_": "inputPeerEmpty"      },      "importId": "string"    }  }'
{  "result": true}