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

Gogram Example

// MessagesStartHistoryImport - positional arguments
result, err := client.MessagesStartHistoryImport(&tg.InputPeerUser{UserID: int64(777000)}, int64(1234567890))
if err != nil {
    // handle error
}
// result is *tg.Bool

Possible Errors

Code Type Description
400 IMPORT_ID_INVALID The specified import ID is invalid.