We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aff7ddc commit 6ebbb44Copy full SHA for 6ebbb44
apps/qqbot/src/adapter/Bot.ts
@@ -136,6 +136,8 @@ export class BotAdapter extends Bot<BotTypes> {
136
const at = data.message.find(it => it.type === 'at');
137
const text = data.message.find(it => it.type === 'text')?.data.text.trim();
138
if (!text) return;
139
+ // q2tg 新的 header,防止触发两次 bot
140
+ if (data.message.some(it => it.type === 'image')) return;
141
142
if ('group_id' in data && at && at.data.qq.toString() === this.env.OFFICIAL_BOT_UIN.toString()) {
143
// 检查融合模式
0 commit comments