TSegmentImage: TSegmentBase & {
    data: {
        cache?: 0 | 1;
        file: string;
        proxy?: 0 | 1;
        summary?: string;
        timeout?: number;
        type?: "flash";
        url?: string;
    };
    type: "image";
}

Type declaration

  • data: {
        cache?: 0 | 1;
        file: string;
        proxy?: 0 | 1;
        summary?: string;
        timeout?: number;
        type?: "flash";
        url?: string;
    }
    • Optionalcache?: 0 | 1

      使用已缓存图片,默认为 1

    • file: string

      支持URI格式的绝对路径、网络 URL 以及 Base64 编码

    • Optionalproxy?: 0 | 1

      是否通过代理下载图片,默认为 1

    • Optionalsummary?: string

      @llonebot-extension 图片预览文字

    • Optionaltimeout?: number

      下载图片的超时时间,默认不超时

    • Optionaltype?: "flash"
    • Optionalurl?: string

      接收图片时 url 不为空

  • type: "image"