messages.startHistoryImport
完成历史导入过程,将所有消息导入聊天中。
完成【历史导入流程](https://core.telegram.org/api/import.md),将所有消息导入聊天中。 仅在使用 [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md) 初始化导入并使用 [messages.uploadImportedMedia](https://core.telegram.org/method/messages.uploadImportedMedia.md) 上传所有文件后调用。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
peer | InputPeer | 是的 | 应导入消息的 Telegram 聊天,点击此处了解更多信息 »](https://core.telegram.org/api/import.md) |
import_id | long | 是的 | 历史导入会话的标识符,由 [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md) 返回。 |
回应
Bool
MTProto RPC
- 400 · CHAT_ADMIN_REQUIRED — 您必须是此聊天的管理员才能执行此操作。
- 400·IMPORT_ID_INVALID — 指定的导入ID无效。
- 400 · PEER_ID_INVALID — 提供的对等 ID 无效。