mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
添加,好友消息和群消息发送成功日志。可用于正则匹配(历史聊天记录
This commit is contained in:
parent
65811d4e22
commit
aca6a3cf28
@ -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})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user