messages.checkHistoryImportPeer #

Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info ».

If the check succeeds, and no RPC errors are returned, a messages.CheckedHistoryImportPeer constructor will be returned, with a confirmation text to be shown to the user, before actually initializing the import.

Layer 223

messages.checkedHistoryImportPeer#a24de717 confirm_text:string = messages.CheckedHistoryImportPeer;
---functions---
messages.checkHistoryImportPeer#5dc60f03 peer:InputPeer = messages.CheckedHistoryImportPeer;

Parameters #

NameTypeDescription
peerInputPeerThe chat where we want to import history ».

Result #

messages.CheckedHistoryImportPeer

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400PEER_ID_INVALIDThe provided peer id is invalid.
400USER_NOT_MUTUAL_CONTACTThe provided user is not a mutual contact.

Imported messages #

Telegram allows importing messages and media from foreign chat apps.

messages.CheckedHistoryImportPeer #

Contains a confirmation text to be shown to the user, upon importing chat history, click here for more info ».