ymx-yunxin-im
    正在准备搜索索引...

    接口 SendFileMessageData

    发送文件消息参数

    interface SendFileMessageData {
        accountId?: string;
        conversationId?: string;
        filePath?: string;
        name?: string;
        teamId?: string;
        url?: string;
    }

    层级 (查看层级一览)

    索引

    属性

    accountId?: string

    单聊对方账号 ID

    conversationId?: string

    会话 ID,与 accountId、teamId 三选一,优先级最高

    filePath?: string

    本地文件:fs://、file:// 开头的地址或应用内的绝对路径(不支持相对路径,文件不存在时返回错误); 与 url 二选一

    name?: string

    文件名称,不传时按文件名

    teamId?: string

    群 ID

    url?: string

    网络文件:仅支持 http:// 或 https:// 开头,插件会先下载到本地,发送完成后删除临时文件; 与 filePath 二选一