mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
Merge pull request #1027 from Yukari316/dev
fix /mark_msg_as_read api param type error
This commit is contained in:
commit
a69d52821f
@ -1433,7 +1433,7 @@ func (bot *CQBot) CQMarkMessageAsRead(msgID int32) MSG {
|
|||||||
if _, ok := m["from-group"]; ok {
|
if _, ok := m["from-group"]; ok {
|
||||||
return Failed(100, "MSG_TYPE_ERROR", "不支持标记临时会话")
|
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)
|
return OK(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user