Layer 220
method Users
messages.checkHistoryImportPeer#5dc60f03 peer:InputPeer = messages.CheckedHistoryImportPeer;

Parameters

Name Type Description
Peer InputPeer The chat where we want to import history.

Possible Errors

Code Type Description
400 CHAT_ADMIN_REQUIRED You must be an admin in this chat to do this.
400 PEER_ID_INVALID The provided peer id is invalid.
400 USER_NOT_MUTUAL_CONTACT The provided user is not a mutual contact.

Gogram Example

// MessagesCheckHistoryImportPeer - positional arguments
result, err := client.MessagesCheckHistoryImportPeer(&tg.InputPeerUser{UserID: int64(123456789)})
if err != nil {
    // handle error
}
// result is *tg.MessagesCheckedHistoryImportPeer