From c8958b2a4217f5e0a27612080ce2555661acd841 Mon Sep 17 00:00:00 2001 From: Yukari316 Date: Wed, 25 Aug 2021 16:06:32 +0800 Subject: [PATCH] fix /mark_msg_as_read api param type error --- coolq/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coolq/api.go b/coolq/api.go index b9dcf85..57bbf2d 100644 --- a/coolq/api.go +++ b/coolq/api.go @@ -1431,7 +1431,7 @@ func (bot *CQBot) CQMarkMessageAsRead(msgID int32) MSG { if _, ok := m["from-group"]; ok { return Failed(100, "MSG_TYPE_ERROR", "不支持标记临时会话") } - bot.Client.MarkPrivateMessageReaded(m["sender"].(*message.Sender).Uin, m["time"].(int64)) + bot.Client.MarkPrivateMessageReaded(m["sender"].(message.Sender).Uin, int64(m["time"].(int32))) return OK(nil) }