Skip to content

weixin-ts / bot/src / GetUploadUrlReq

Interface: GetUploadUrlReq

Defined in: bot/src/types.ts:221

getUploadUrl request payload

Properties

aeskey?

optional aeskey?: string

Defined in: bot/src/types.ts:241

AES encryption key (hex)


filekey?

optional filekey?: string

Defined in: bot/src/types.ts:222


filesize?

optional filesize?: number

Defined in: bot/src/types.ts:231

Ciphertext file size (AES-128-ECB encrypted)


media_type?

optional media_type?: UploadMediaType

Defined in: bot/src/types.ts:224

Media type, see UploadMediaType


no_need_thumb?

optional no_need_thumb?: boolean

Defined in: bot/src/types.ts:239

Skip thumbnail upload URL, defaults to false


rawfilemd5?

optional rawfilemd5?: string

Defined in: bot/src/types.ts:229

Raw plaintext file MD5 hex string


rawsize?

optional rawsize?: number

Defined in: bot/src/types.ts:227

Raw plaintext file size in bytes


thumb_filesize?

optional thumb_filesize?: number

Defined in: bot/src/types.ts:237

Thumbnail ciphertext size (required for IMAGE/VIDEO)


thumb_rawfilemd5?

optional thumb_rawfilemd5?: string

Defined in: bot/src/types.ts:235

Thumbnail plaintext MD5 (required for IMAGE/VIDEO)


thumb_rawsize?

optional thumb_rawsize?: number

Defined in: bot/src/types.ts:233

Thumbnail plaintext size (required for IMAGE/VIDEO)


to_user_id?

optional to_user_id?: string

Defined in: bot/src/types.ts:225

Released under the MIT License.