SoraSegment.Image method (1 of 2)
图片 消息段
public static SoraSegment Image(Stream data)
parameter | description |
---|---|
data | 图片流 |
See Also
- class SoraSegment
- namespace Sora.Entities.Segment
SoraSegment.Image method (2 of 2)
图片 消息段
public static SoraSegment Image(string data, bool useCache = true, int? threadCount = null)
parameter | description |
---|---|
data | 图片名/绝对路径/URL/base64 |
useCache | 通过URL发送时有效,是否使用已缓存的文件 |
threadCount | 通过URL发送时有效,通过网络下载图片时的线程数,默认单线程 |
Remarks
若要使用Base64,需要让 data 以 base64:// 开头
See Also
- class SoraSegment
- namespace Sora.Entities.Segment