Skip to content

Commit

Permalink
support int64 msg_id
Browse files Browse the repository at this point in the history
  • Loading branch information
super1207 authored Jan 13, 2024
1 parent 60c75a2 commit 7255529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MiraiCQ/MiraiCQ/tool/MsgIdTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inline MsgIdTool::MsgIdTool()

int MsgIdTool::to_cqid(const Json::Value & webid)
{
if (!(webid.isInt() || webid.isString()))
if (!(webid.isInt64() || webid.isString()))
{
throw std::runtime_error("wrong msg_id type");
}
Expand Down

0 comments on commit 7255529

Please sign in to comment.