PASS: oversized upload returns 413 before decoding PASS: corrupt image returns 415 PASS: MIME mismatch returns 415 PASS: unsupported declared type returns 415 PASS: path-like and control-character filenames return 400 PASS: pixel limit returns 413 PASS: attachment from another chat cannot be attached PASS: unknown attachment id returns 404 PASS: outsider cannot read metadata or bytes PASS: chat member downloads identical bytes PASS: real JPEG upload roundtrip PASS: attachment_ids survive message history PASS: all negative attachment scenarios