Interface: ImageSegment
Defined in: packages/ov0/src/typing/segment.ts:54
图片消息段
Extends
Properties
data
data:
object
Defined in: packages/ov0/src/typing/segment.ts:56
cache?
optional
cache:0
|1
只在通过网络 URL 发送时有效,表示是否使用已缓存的文件,默认 1
file
file:
string
文件base64
proxy?
optional
proxy:0
|1
只在通过网络 URL 发送时有效,表示是否通过代理下载文件(需通过环境变量或配置文件配置代理),默认 1
timeout?
optional
timeout:number
流的超时时间,默认60(秒)
type?
optional
type:"flash"
图片类型,flash 表示闪照,无此参数表示普通图片
url?
optional
url:string
图片url地址,接收时有效
type
type:
"image"
Defined in: packages/ov0/src/typing/segment.ts:55