interface MessageContent : SingleMessage
消息内容
See Also
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. |
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 |
At |
At 一个群成员. 只能发送给一个群. data class At : MessageContent |
AtAll |
"@全体成员". object AtAll : Key<AtAll>, MessageContent |
Face |
QQ 自带表情 data class Face : MessageContent |
FlashImage |
闪照 sealed class FlashImage : MessageContent, HummerMessage |
ForwardMessage |
合并转发消息 class ForwardMessage : MessageContent |
HummerMessage |
一些特殊的消息 sealed class HummerMessage : MessageContent |
Image |
自定义表情 (收藏的表情) 和普通图片. interface Image : Message, MessageContent |
PlainText |
纯文本. 可含 emoji 表情如 😊. data class PlainText : MessageContent |
RichMessage |
XML 消息等富文本消息 interface RichMessage : MessageContent |