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 | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
peer | InputPeer | Ja | The Telegram chat where the media will be imported |
import_id | long | Ja | 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 | Ja | File name |
media | InputMedia | Ja | Media metadata |
Antworten
MessageMedia
MTProto RPC
- 400 · CHAT_ADMIN_REQUIRED — Um dies zu tun, müssen Sie in diesem Chat Administrator sein.
- 400 · IMPORT_ID_INVALID – Die angegebene Import-ID ist ungültig.
- 400 · MEDIA_INVALID – Medien ungültig.