Functions
Link copied to clipboard
只通过 Data.file 属性构建 OneBotImage.
直接使用 Data 和 Resource 构建 OneBotImage.
直接使用 Resource 构建一个用于发送的 OneBotImage。 其中,Data.file 会根据 Resource 的类型计算为一个对应的值, 大概规则为:
Inherited functions
Link copied to clipboard
inline fun OneBotImage.Factory.create(resource: Resource, block: OneBotImage.AdditionalParams.() -> Unit): OneBotImage
使用 Resource 构建一个用于发送的 OneBotImage。