upload_imported_media()¶
- async Client.upload_imported_media()¶
Upload a media file for a history import session.
Usable by Users Bots- Parameters:
chat_id (
int|str) – The target chat.import_id (
int) – The import session ID frominit_history_import().file_name (
str) – The original file name of the media.media (
InputMedia) – The media to upload.
- Returns:
MessageMedia– The uploaded media.
Example
await app.upload_imported_media(chat_id, import_id, "photo.jpg", media)