messages.UploadImportedMedia

class pyrogram.raw.functions.messages.UploadImportedMedia

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

Details:
  • Layer: 194

  • ID: 2A862092

Parameters:
  • peer (InputPeer) – The Telegram chat where the media will be imported

  • import_id (int 64-bit) – Identifier of a history import session, returned by messages.initHistoryImport

  • file_name (str) – File name

  • media (InputMedia) – Media metadata

Returns:

MessageMedia