Merge pull request #61 from li-xunhuan/master

🎨 优化文本消息内容处理
This commit is contained in:
Ivy 2021-08-02 16:48:26 +08:00 committed by GitHub
commit 017faf2594
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 发送消息的结构体