Expand description
Final media-message metadata. CDN upload and message submission are separate steps; persist source bytes, generated keys and intent before either step.
Structs§
- Media
Send Result - Voice
Upload - One voice note submitted through
uploadvoice. A note of at mostVOICE_UPLOAD_CHUNK_BYTESuses a single request with the end flag set. A larger note is sent as consecutive byte ranges (offset/length) under the same client message ID; only the last range sets the end flag, and later ranges carry a server message ID returned for an earlier range. Each range is submitted once: an error after any submission is an uncertain outcome.
Enums§
Constants§
- VOICE_
UPLOAD_ CHUNK_ BYTES - Encoded SILK bytes carried by one
uploadvoicerequest. A short-link request travels in one MMTLS record of at most 65,519 plaintext bytes, including the route, packet header and envelope, so a 60-second note (about 126-131 KB from the bundled 16 kbit/s profile) cannot use one request. 32 KiB matches thedownloadvoicerange size and leaves room for that overhead.
Functions§
- decode_
file_ send - decode_
file_ send_ correlated - Correlate the final reply for a reserved file with its submitted intent.
- decode_
image_ send - decode_
video_ send - decode_
voice_ send - Decode the reply to the request carrying a note’s end flag.
- file_
send_ request - file_
send_ request_ with_ reservation - file_
xml - file_
xml_ with_ reservation - image_
send_ request - local_
file_ xml - local_
file_ xml_ with_ reservation - local_
image_ xml - local_
video_ xml - local_
voice_ xml - share_
send_ request - share_
xml - Generic URL shares use app subtype 5. Metadata is supplied by the caller; composing or sending a card never fetches the target page or thumbnail.
- video_
send_ request