# Схема: media\_import\_files: inputSchema

Source: <https://telegafirst.com/docs/schema-8a59642bd8a7c5a1151d4e760b5ec23b418578a6a966943c0714a4758899206c>
Locale: ru
releaseGitSha: 45cdd4e19c6d3956d1bfa48c79fcb8dfec11fa9e
sourceContentDigest: 4404667785581d3a9ef6818a242d0cd0de27efebc9ce54826090bbd8dbff3414
Version: 1

# Схема: media\_import\_files: inputSchema

| Поле | Значение |
| - | - |
| $schema | "<https://json-schema.org/draft/2020-12/schema>" |
| additionalProperties | false |
| properties.bot.description | "Optional slug of the bot you expect to act on (get\_active\_bot). If the active bot differs, the call is refused with ACTIVE\_BOT\_CHANGED and nothing runs." |
| properties.bot.maxLength | 128 |
| properties.bot.minLength | 1 |
| properties.bot.type | "string" |
| properties.files.description | "Files the AI host attached: a download\_url and a file\_id each. ChatGPT fills this itself." |
| properties.files.items.additionalProperties | false |
| properties.files.items.description | "Value for files item." |
| properties.files.items.properties.download\_url.description | "Value for download url." |
| properties.files.items.properties.download\_url.format | "uri" |
| properties.files.items.properties.download\_url.maxLength | 8192 |
| properties.files.items.properties.download\_url.type | "string" |
| properties.files.items.properties.file\_id.description | "Value for file id." |
| properties.files.items.properties.file\_id.maxLength | 1024 |
| properties.files.items.properties.file\_id.minLength | 1 |
| properties.files.items.properties.file\_id.type | "string" |
| properties.files.items.properties.file\_name.description | "Value for file name." |
| properties.files.items.properties.file\_name.maxLength | 1024 |
| properties.files.items.properties.file\_name.minLength | 1 |
| properties.files.items.properties.file\_name.type | "string" |
| properties.files.items.properties.media\_kind.description | "Value for media kind." |
| properties.files.items.properties.media\_kind.enum | \["voice","audio","video\_note"] |
| properties.files.items.properties.media\_kind.type | "string" |
| properties.files.items.properties.mime\_type.description | "Value for mime type." |
| properties.files.items.properties.mime\_type.maxLength | 255 |
| properties.files.items.properties.mime\_type.minLength | 1 |
| properties.files.items.properties.mime\_type.type | "string" |
| properties.files.items.required | \["download\_url","file\_id"] |
| properties.files.items.type | "object" |
| properties.files.maxItems | 10 |
| properties.files.type | "array" |
| properties.idempotency\_key.description | "Value for idempotency key." |
| properties.idempotency\_key.maxLength | 256 |
| properties.idempotency\_key.minLength | 1 |
| properties.idempotency\_key.type | "string" |
| properties.sources.description | "HTTPS addresses of files on the business site or an allowed file host, or small files as data: addresses with byte\_length. Up to 10 files and sources together." |
| properties.sources.items.additionalProperties | false |
| properties.sources.items.description | "Value for sources item." |
| properties.sources.items.properties.byte\_length.description | "Required with a data: address: the exact number of bytes the base64 payload decodes to." |
| properties.sources.items.properties.byte\_length.exclusiveMinimum | 0 |
| properties.sources.items.properties.byte\_length.maximum | 9007199254740991 |
| properties.sources.items.properties.byte\_length.type | "integer" |
| properties.sources.items.properties.file\_name.description | "Value for file name." |
| properties.sources.items.properties.file\_name.maxLength | 1024 |
| properties.sources.items.properties.file\_name.minLength | 1 |
| properties.sources.items.properties.file\_name.type | "string" |
| properties.sources.items.properties.media\_kind.description | "Value for media kind." |
| properties.sources.items.properties.media\_kind.enum | \["voice","audio","video\_note"] |
| properties.sources.items.properties.media\_kind.type | "string" |
| properties.sources.items.properties.mime\_type.description | "Value for mime type." |
| properties.sources.items.properties.mime\_type.maxLength | 255 |
| properties.sources.items.properties.mime\_type.minLength | 1 |
| properties.sources.items.properties.mime\_type.type | "string" |
| properties.sources.items.properties.sha256.description | "Optional with a data: address: the SHA-256 of the decoded bytes, 64 hex characters; checked against them." |
| properties.sources.items.properties.sha256.maxLength | 64 |
| properties.sources.items.properties.sha256.minLength | 64 |
| properties.sources.items.properties.sha256.type | "string" |
| properties.sources.items.properties.url.description | "An https address, or for a small file (at most 131072 bytes after decoding) data:\<mime>;base64,\<payload>. A larger file goes through media\_request\_upload." |
| properties.sources.items.properties.url.maxLength | 1048576 |
| properties.sources.items.properties.url.minLength | 1 |
| properties.sources.items.properties.url.type | "string" |
| properties.sources.items.required | \["url"] |
| properties.sources.items.type | "object" |
| properties.sources.maxItems | 10 |
| properties.sources.type | "array" |
| required | \["idempotency\_key"] |
| type | "object" |
