Skip to content

Commit

Permalink
fix: 同步支持QQ官方机器人撤回群/私聊消息能力
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn authored Mar 23, 2024
1 parent 2eae324 commit b948c0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adapters/qq/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ export default class QQAdapter extends Adapter<"qq", Sendable> {
const bot = this.getOneBot<Bot>(uin).internal;
switch (from_type) {
case "private":
return bot.recallPrivateMessage(from_id, msg_idArr.join(":"));
case "group":
throw new Error(`暂不支持撤回${from_type}类型的消息`);
return bot.recallGroupMessage(from_id, msg_idArr.join(":"));
case "direct":
return bot.recallDirectMessage(from_id, msg_idArr.join(":"));
case "guild":
Expand Down

0 comments on commit b948c0d

Please sign in to comment.