commit
9897fbf0f4
@ -347,13 +347,11 @@ func (m *Message) init(bot *Bot) {
|
|||||||
m.Content = html.UnescapeString(m.Content)
|
m.Content = html.UnescapeString(m.Content)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 文本消息
|
// 处理消息中的换行
|
||||||
if m.IsText() {
|
|
||||||
m.Content = strings.Replace(m.Content, `<br/>`, "\n", -1)
|
m.Content = strings.Replace(m.Content, `<br/>`, "\n", -1)
|
||||||
// 格式化文本消息中的emoji表情
|
// 处理消息中的emoji表情
|
||||||
m.Content = FormatEmoji(m.Content)
|
m.Content = FormatEmoji(m.Content)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// SendMessage 发送消息的结构体
|
// SendMessage 发送消息的结构体
|
||||||
type SendMessage struct {
|
type SendMessage struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user