messages.uploadImportedMedia
Upload a media file associated with an imported chat, click here for more info ».
Upload a media file associated with an [imported chat, click here for more info »](https://core.telegram.org/api/import.md).
| Name | Type | Required | Description |
|---|---|---|---|
peer | InputPeer | Yes | The Telegram chat where the media will be imported |
import_id | long | Yes | Identifier of a [history import session](https://core.telegram.org/api/import.md), returned by [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md) |
file_name | string | Yes | File name |
media | InputMedia | Yes | Media metadata |
Replies
MessageMedia
MTProto RPC
- 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
- 400 · IMPORT_ID_INVALID — The specified import ID is invalid.
- 400 · MEDIA_INVALID — Media invalid.