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

[Fix] Using timestamp from server

This commit is contained in:
sam01101 2021-08-13 18:55:04 +08:00 committed by GitHub
parent c355549c8d
commit d3b22a7a46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -514,7 +514,7 @@ func (bot *CQBot) formatGroupMessage(m *message.GroupMessage) MSG {
"user_id": m.Sender.Uin, "user_id": m.Sender.Uin,
}, },
"sub_type": "normal", "sub_type": "normal",
"time": time.Now().Unix(), "time": m.Time,
"user_id": m.Sender.Uin, "user_id": m.Sender.Uin,
} }
if m.Sender.IsAnonymous() { if m.Sender.IsAnonymous() {