# Схема: site\_request\_upload: inputSchema

Source: <https://telegafirst.com/docs/schema-3d47910dba441d3faf6aff33415e31980c7ae1e9b3285101e6e74511febc4c25>
Locale: ru
releaseGitSha: fc570c76ffc9cb87e2462d45b14f5c1b52fbaf0d
sourceContentDigest: d951c7bce75f8fb2515fbb796471743e9a358703af2f29f0806c35098960a94a
Version: 2

# Схема: site\_request\_upload: 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 | "Value for files." |
| properties.files.items.additionalProperties | false |
| properties.files.items.description | "Value for files item." |
| properties.files.items.properties.content\_type.description | "Value for content type." |
| properties.files.items.properties.content\_type.maxLength | 255 |
| properties.files.items.properties.content\_type.minLength | 1 |
| properties.files.items.properties.content\_type.type | "string" |
| properties.files.items.properties.path.description | "Value for path." |
| properties.files.items.properties.path.maxLength | 512 |
| properties.files.items.properties.path.minLength | 1 |
| properties.files.items.properties.path.type | "string" |
| properties.files.items.properties.references.description | "Value for references." |
| properties.files.items.properties.references.items.description | "Value for references item." |
| properties.files.items.properties.references.items.maxLength | 512 |
| properties.files.items.properties.references.items.minLength | 1 |
| properties.files.items.properties.references.items.type | "string" |
| properties.files.items.properties.references.type | "array" |
| properties.files.items.properties.size\_bytes.description | "Exact byte size of a file you PUT. With \`source\` it may be omitted: the server takes the size from the source." |
| properties.files.items.properties.size\_bytes.maximum | 9007199254740991 |
| properties.files.items.properties.size\_bytes.minimum | 0 |
| properties.files.items.properties.size\_bytes.type | "integer" |
| properties.files.items.properties.source.additionalProperties | false |
| properties.files.items.properties.source.description | "Where the server fetches this file itself, so you do not PUT it: an https address on an allowed file host, or data:\<mime>;base64,\<payload> with byte\_length for a small file. The upload then reports status \`fetching\`; site\_publish waits for it." |
| properties.files.items.properties.source.properties.byte\_length.description | "Required with a data: address: the exact number of bytes the base64 payload decodes to." |
| properties.files.items.properties.source.properties.byte\_length.exclusiveMinimum | 0 |
| properties.files.items.properties.source.properties.byte\_length.maximum | 9007199254740991 |
| properties.files.items.properties.source.properties.byte\_length.type | "integer" |
| properties.files.items.properties.source.properties.file\_name.description | "Value for file name." |
| properties.files.items.properties.source.properties.file\_name.maxLength | 1024 |
| properties.files.items.properties.source.properties.file\_name.minLength | 1 |
| properties.files.items.properties.source.properties.file\_name.type | "string" |
| properties.files.items.properties.source.properties.media\_kind.description | "Value for media kind." |
| properties.files.items.properties.source.properties.media\_kind.enum | \["voice","audio","video\_note"] |
| properties.files.items.properties.source.properties.media\_kind.type | "string" |
| properties.files.items.properties.source.properties.mime\_type.description | "Value for mime type." |
| properties.files.items.properties.source.properties.mime\_type.maxLength | 255 |
| properties.files.items.properties.source.properties.mime\_type.minLength | 1 |
| properties.files.items.properties.source.properties.mime\_type.type | "string" |
| properties.files.items.properties.source.properties.sha256.description | "Optional with a data: address: the SHA-256 of the decoded bytes, 64 hex characters; checked against them." |
| properties.files.items.properties.source.properties.sha256.maxLength | 64 |
| properties.files.items.properties.source.properties.sha256.minLength | 64 |
| properties.files.items.properties.source.properties.sha256.type | "string" |
| properties.files.items.properties.source.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.files.items.properties.source.properties.url.maxLength | 1048576 |
| properties.files.items.properties.source.properties.url.minLength | 1 |
| properties.files.items.properties.source.properties.url.type | "string" |
| properties.files.items.properties.source.required | \["url"] |
| properties.files.items.properties.source.type | "object" |
| properties.files.items.required | \["path","content\_type"] |
| properties.files.items.type | "object" |
| properties.files.minItems | 1 |
| properties.files.type | "array" |
| properties.host.description | "Value for host." |
| properties.host.maxLength | 253 |
| properties.host.minLength | 4 |
| properties.host.pattern | "^(?=.{4,253}$)\[a-zA-Z0-9]\(?:\[a-zA-Z0-9-]{0,61}\[a-zA-Z0-9])?(?:\\\\.\[a-zA-Z0-9]\(?:\[a-zA-Z0-9-]{0,61}\[a-zA-Z0-9])?)+\\\\.?$" |
| properties.host.type | "string" |
| properties.mode.default | "merge" |
| properties.mode.description | "Value for mode." |
| properties.mode.enum | \["merge","replace"] |
| properties.mode.type | "string" |
| required | \["host","mode","files"] |
| type | "object" |
