Layer 220
MessagesStartHistoryImport
Complete the history import process, importing all messages into the chat. To be called only after initializing the import with messages. init History Import and uploading all files using messages. upload Imported Media.
method
Users
messages.startHistoryImport#b43df344 peer:InputPeer import_id:long = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | The Telegram chat where the messages should be imported, click here for more info |
| ImportId | long | Identifier of a history import session, returned by messages. init History Import. |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | IMPORT_ID_INVALID | The specified import ID is invalid. |
Gogram Example
// MessagesStartHistoryImport - positional arguments result, err := client.MessagesStartHistoryImport(&tg.InputPeerUser{UserID: int64(123456789)}, int64(0)) if err != nil { // handle error } // result is *tg.Bool