messages.startHistoryImport #

Complete the history import process, importing all messages into the chat.
To be called only after initializing the import with messages.initHistoryImport and uploading all files using messages.uploadImportedMedia.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.startHistoryImport#b43df344 peer:InputPeer import_id:long = Bool;

Parameters #

NameTypeDescription
peerInputPeerThe Telegram chat where the messages should be imported, click here for more info »
import_idlongIdentifier of a history import session, returned by messages.initHistoryImport.

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400IMPORT_ID_INVALIDThe specified import ID is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.

Imported messages #

Telegram allows importing messages and media from foreign chat apps.

messages.initHistoryImport #

Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats ».

messages.uploadImportedMedia #

Upload a media file associated with an imported chat, click here for more info ».