mirai
2.15.0-M1
common
mirai-core-api
/
net.mamoe.mirai.contact.announcement
/
Announcements
/
uploadImage
upload
Image
abstract
suspend
fun
uploadImage
(
resource
:
ExternalResource
)
:
AnnouncementImage
上传资源作为群公告图片. 返回值可用于
AnnouncementParameters.image
.
注意
: 需要由调用方
关闭
resource
.
Throws
Illegal
State
Exception
当协议异常时抛出