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 - Sticker
Descriptor - Uploaded
Image - Uploaded
Media - Uploaded
Video
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 - 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 - 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