Interface ImageElem

图片

interface ImageElem {
    asface?: boolean;
    cache?: boolean;
    fid?: string | number;
    file: string | Buffer | Readable;
    headers?: OutgoingHttpHeaders;
    height?: number;
    md5?: string;
    nt?: boolean;
    origin?: boolean;
    size?: number;
    summary?: string;
    timeout?: number;
    type: "image";
    url?: string;
    width?: number;
}

Properties

asface?: boolean

是否作为表情发送

cache?: boolean

网络图片是否使用缓存

fid?: string | number

图片fid

file: string | Buffer | Readable
headers?: OutgoingHttpHeaders
height?: number

图片高度,接收时有效

md5?: string

图片md5,接收时有效

nt?: boolean

是否QQNT文件

origin?: boolean

是否显示下载原图按钮

size?: number

图片大小,接收时有效

summary?: string

图片概要

timeout?: number

流的超时时间,默认60(秒)

type
url?: string

图片url地址,接收时有效

width?: number

图片宽度,接收时有效