ReceivingMessageParser
Types
Link copied to clipboard
data class Context(var messages: Messages, var plainTextBuilder: StringBuilder, var attachments: List<Message.Attachment>? = null)
消息链和正文文本内容的容器,用于 ReceivingMessageParser.invoke 中进行传递解析。
Functions
Link copied to clipboard
abstract operator fun invoke(qgContent: String, context: ReceivingMessageParser.Context): ReceivingMessageParser.Context
解析一个 content
, 并将其内部信息并入 Context 中。
abstract operator fun invoke(qgMessage: Message, context: ReceivingMessageParser.Context): ReceivingMessageParser.Context