ForwardMessage 
            data class ForwardMessage(preview: List<String>, title: String, brief: String, source: String, summary: String, nodeList: List<ForwardMessage.Node>) : MessageContent, ConstrainSingle
Content copied to clipboard
合并转发消息
显示方案
移动端
在移动客户端将会显示为卡片
<title>: DisplayStrategy.generateTitle<preview>: DisplayStrategy.generatePreview<summary>: DisplayStrategy.generateSummary
|-------------------------|
| <title>                 |
| <preview>               |
|-------------------------|
| <summary>               |
|-------------------------|Content copied to clipboard
默认显示方案:
|-------------------------|
| 群聊的聊天记录             |
| <消息 1>                 |
| <消息 2>                 |
| <消息 3>                 |
|-------------------------|
| 查看3条转发消息          |
|-------------------------|Content copied to clipboard
PC 端
在部分 PC 端显示为类似移动端的卡片, 在其他 PC 端显示为以下格式
鸽子 A 2020/04/23 11:27:54
咕
鸽子 B 2020/04/23 11:27:55
咕
鸽子 C 1970/01/01 08:00:00
咕咕咕Content copied to clipboard
构造
使用构建器 ForwardMessageBuilder
使用 DSL
通过 MessageEvent 集合转换: toForwardMessage
See also
Constructors
ForwardMessage
                          
                    Link copied to clipboard
                        fun ForwardMessage(preview: List<String>, title: String, brief: String, source: String, summary: String, nodeList: List<ForwardMessage.Node>)
Content copied to clipboard
Types
DisplayStrategy 
                          
                    Link copied to clipboard
                        合并转发卡片展示策略. 用于 RawForwardMessage 的 渲染.
Key
                          
                    Link copied to clipboard
                        object Key : AbstractPolymorphicMessageKey<MessageContent, ForwardMessage> 
Content copied to clipboard
Node
                          
                    Link copied to clipboard
                        data class Node(senderId: Long, time: Int, senderName: String, messageChain: MessageChain) : ForwardMessage.INode
Content copied to clipboard
消息节点
Functions
contentEquals 
                          
                    Link copied to clipboard
                        open fun contentEquals(another: String, ignoreCase: Boolean = false): Boolean
Content copied to clipboard
判断内容是否与 another 相等.
open fun contentEquals(another: Message, ignoreCase: Boolean = false): Boolean
Content copied to clipboard
判断内容是否与 another 相等即 this 与 another 的 contentToString 相等.
open fun contentEquals(another: Message, ignoreCase: Boolean = false, strict: Boolean = false): Boolean
Content copied to clipboard
判断内容是否与 another 相等即 this 与 another 的 contentToString 相等. strict 为 true 时, 还会额外判断每个消息元素的类型, 顺序和属性. 如 Image 会判断 Image.imageId
contentToString  
                          
                    Link copied to clipboard
                        转为最接近官方格式的字符串. 如 At(member) + "test" 将转为 "@群名片 test".
followedBy 
                          
                    Link copied to clipboard
                        将 this 和 tail 连接.
Properties
key
                          
                    Link copied to clipboard
                        用于判断是否为同一种元素的 MessageKey. 使用多态类型 MessageKey 最上层的 MessageKey.
nodeList
                          
                    
                  Link copied to clipboard