sealed class GroupImage : AbstractImage
群图片.
imageId 形如 {01E9451B-70ED-EAE3-B37C-101F1EEBF5B5}.mirai
(45 长度)
Key |
companion object Key : Key<GroupImage> |
typeName |
此 Key 指代的 Message 类型名. 一般为 val typeName: String |
md5 |
val Image.md5: ByteArray |
flash |
fun GroupImage.flash(): GroupFlashImage |
flash2 |
fun GroupImage. |
flatten |
扁平化 Message fun Message.flatten(): Sequence<SingleMessage> |
isContentEmpty |
判断消息内容是否为空. fun Message.isContentEmpty(): Boolean |
isContentNotEmpty |
fun Message.isContentNotEmpty(): Boolean |
isNotPlain |
fun Message.isNotPlain(): Boolean |
isNotPlain2 |
fun Message. |
isPlain |
fun Message.isPlain(): Boolean |
isPlain2 |
fun Message. |
queryUrl |
查询原图下载链接. suspend fun Image.queryUrl(): String |
repeat |
fun Message.repeat(count: Int): MessageChain |
repeat2 |
fun Message. |
sendTo |
suspend fun <C : Contact> Message.sendTo(contact: C): MessageReceipt<C> |
times |
operator fun Message.times(count: Int): MessageChain |
toForwardMessage |
转换为 ForwardMessage fun Message.toForwardMessage(sender: User, time: Int = currentTimeSeconds.toInt(), displayStrategy: DisplayStrategy = DisplayStrategy): ForwardMessage fun Message.toForwardMessage(senderId: Long, senderName: String, time: Int = currentTimeSeconds.toInt(), displayStrategy: DisplayStrategy = DisplayStrategy): ForwardMessage |
OfflineGroupImage |
通过 Group.uploadImage 上传得到的 GroupImage. 它的链接需要查询 Bot.queryImageUrl data class OfflineGroupImage : GroupImage, OfflineImage |
OnlineGroupImage |
接收消息时获取到的 GroupImage. 它可以直接获取下载链接 originUrl abstract class OnlineGroupImage : GroupImage, OnlineImage |