Layer 220
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

Bool

Possible 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