Expand description
Bounded native CDN transport. This uses the observed HTTP carrier on port 443, not HTTPS. Media encryption and advertised size/digests are checked separately.
Structs§
- CdnClient
- CdnConfig
- CdnLocation
- Downloaded
Media - Image
Inspection - Media
Descriptor - Prepared
Image Upload - Prepared
Upload - Prepared
Variant - Prepared
Video Upload - Source
Evidence - How an optional reply value relates to the selected message tuple and to the bytes actually delivered. Values are compared, never retained.
- Sticker
Descriptor - Uploaded
Image - Uploaded copies offered by an image message, with an optional original.
- Uploaded
Media - Uploaded
Video - Video
Representation Mismatch - A complete video transfer at or below the ordinary transfer threshold decrypted successfully but did not match the selected message tuple. The download is still rejected. Only fixed numeric controls and comparison results are kept, so a caller can store a diagnostic without reply bytes or digests. Fields use wire key names; their meanings are not established.
Enums§
- Large
CdnRoute - Large
File Download Control - Only these fixed, nonsecret numeric controls can enter a stored diagnostic.
- Large
File Download Error - Strict rejection details. Unknown keys and response bytes are never retained.
- Media
Quality
Constants§
- MAX_
CDN_ TRANSFER_ BYTES - MAX_
LARGE_ FILE_ BYTES - MAX_
LINK_ THUMBNAIL_ BYTES - MAX_
NATIVE_ UPLOAD_ BYTES - MAX_
VIDEO_ DOWNLOAD_ BYTES - Incoming video plaintext limit, matching the ordinary-file download and
automatic-download ceiling. Every such transfer stays bound to the
advertised length and MD5. Outgoing preparation keeps the separate
wechat_media::MAX_VIDEO_SOURCE_BYTESsource limit. - STICKER_
HOSTS - Sticker bytes come from Tencent CDN hosts. Classic stored and pack emoji
carry a
wxapp.tc.qq.comsource, while shared stickers usesnsvideo.c2c.wechat.com; both are reachable directly, unlike the encrypted attachment channels. Any other host stays refused so a crafted message cannot turn this into an arbitrary fetch.
Functions§
- adler32_
zero - decode_
cdn_ config - decode_
large_ cdn_ config - Decode the safe C2C routing table in an authenticated GetCDNDns response. The safe CDN UIN belongs to that routing table and may differ from the account UIN.
- decrypt_
cdn - download_
advertised_ avatar - encrypt_
recipient - fetch_
link_ thumbnail - fetch_
sticker - fetch_
sticker_ original - Fetch an original whose metadata has no advertised length. Enforces the same host, DNS, stream-size, MD5 and image checks without inventing a source length.
- inspect_
image - Inspect the retained source. For WXGF, dimensions describe its still preview;
framesdoes not establish the source’s animation frame count. - pack_
cdn - unpack_
cdn - validate_
avatar_ url - validate_
link_ thumbnail_ url - validate_
shared_ link_ url - validate_
sticker_ url