1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

添加,好友消息和群消息发送成功日志。可用于正则匹配(历史聊天记录

This commit is contained in:
scjtqs 2020-09-22 22:47:01 +08:00
parent 65811d4e22
commit aca6a3cf28

View File

@ -151,6 +151,7 @@ func (bot *CQBot) CQSendGroupMessage(groupId int64, i interface{}, autoEscape bo
if mid == -1 {
return Failed(100)
}
log.Infof("发送群 %v(%v) 的消息: %v (%v)", groupId, groupId, str, mid)
return OK(MSG{"message_id": mid})
}
@ -271,6 +272,7 @@ func (bot *CQBot) CQSendPrivateMessage(userId int64, i interface{}, autoEscape b
if mid == -1 {
return Failed(100)
}
log.Infof("发送好友 %v(%v) 的消息: %v (%v)", userId, userId, str, mid)
return OK(MSG{"message_id": mid})
}