К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/schema-3d47910dba441d3faf6aff33415e31980c7ae1e9b3285101e6e74511febc4c25.mdиндекс документации — /llms.txt

Схема: site_request_upload: inputSchema

Обновлено

ПолеЗначение
$schema"https://json-schema.org/draft/2020-12/schema"
additionalPropertiesfalse
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.maxLength128
properties.bot.minLength1
properties.bot.type"string"
properties.files.description"Value for files."
properties.files.items.additionalPropertiesfalse
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.maxLength255
properties.files.items.properties.content_type.minLength1
properties.files.items.properties.content_type.type"string"
properties.files.items.properties.path.description"Value for path."
properties.files.items.properties.path.maxLength512
properties.files.items.properties.path.minLength1
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.maxLength512
properties.files.items.properties.references.items.minLength1
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.maximum9007199254740991
properties.files.items.properties.size_bytes.minimum0
properties.files.items.properties.size_bytes.type"integer"
properties.files.items.properties.source.additionalPropertiesfalse
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.exclusiveMinimum0
properties.files.items.properties.source.properties.byte_length.maximum9007199254740991
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.maxLength1024
properties.files.items.properties.source.properties.file_name.minLength1
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.maxLength255
properties.files.items.properties.source.properties.mime_type.minLength1
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.maxLength64
properties.files.items.properties.source.properties.sha256.minLength64
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.maxLength1048576
properties.files.items.properties.source.properties.url.minLength1
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.minItems1
properties.files.type"array"
properties.host.description"Value for host."
properties.host.maxLength253
properties.host.minLength4
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"