🎨 优化文本消息内容处理

This commit is contained in:
李寻欢 2021-08-02 16:10:14 +08:00 committed by GitHub
parent 153c1b079a
commit 8abce93b6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -351,6 +351,9 @@ func (m *Message) init(bot *Bot) {
m.Content = strings.Replace(m.Content, `<br/>`, "\n", -1)
// 处理消息中的emoji表情
m.Content = FormatEmoji(m.Content)
if m.IsText() {
m.Content = XmlFormString(m.Content)
}
}
// SendMessage 发送消息的结构体