messages.CheckHistoryImportPeer#

class pyrogram.raw.functions.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.

Usable by Users Bots
Details:
  • Layer: 224

  • ID: 5DC60F03

Parameters:

peer (InputPeer) – The chat where we want to import history ».

Returns:

messages.CheckedHistoryImportPeer