mirror of https://github.com/Nofated095/Q2TG.git
🐛 Bug: new command cannot be found in chats
This commit is contained in:
parent
2864d1db8f
commit
2ef0470c47
|
@ -61,10 +61,10 @@ const groupInChatCommands = [
|
|||
command: "forwardon",
|
||||
description: "恢复消息转发",
|
||||
}),
|
||||
new Api.BotCommand({ command: "disableQQForward", description: "停止从QQ转发至TG" }),
|
||||
new Api.BotCommand({ command: "enableQQForward", description: "恢复从QQ转发至TG" }),
|
||||
new Api.BotCommand({ command: "disableTGForward", description: "停止从TG转发至QQ" }),
|
||||
new Api.BotCommand({ command: "enableTGForward", description: "恢复从TG转发至QQ" }),
|
||||
new Api.BotCommand({ command: "disable_qq_forward", description: "停止从QQ转发至TG" }),
|
||||
new Api.BotCommand({ command: "enable_qq_forward", description: "恢复从QQ转发至TG" }),
|
||||
new Api.BotCommand({ command: "disable_tg_forward", description: "停止从TG转发至QQ" }),
|
||||
new Api.BotCommand({ command: "enable_tg_forward", description: "恢复从TG转发至QQ" }),
|
||||
];
|
||||
|
||||
const personalInChatCommands = [
|
||||
|
|
|
@ -48,19 +48,19 @@ export default class InChatCommandsController {
|
|||
pair.enable = true;
|
||||
await message.reply({ message: "转发已启用" });
|
||||
return true;
|
||||
case "/disableQQForward":
|
||||
case "/disable_qq_forward":
|
||||
pair.disableQ2TG = true;
|
||||
await message.reply({ message: "QQ->TG已禁用" });
|
||||
return true;
|
||||
case "/enableQQForward":
|
||||
case "/enable_qq_forward":
|
||||
pair.disableQ2TG = false;
|
||||
await message.reply({ message: "QQ->TG已启用" });
|
||||
return true;
|
||||
case "/disableTGForward":
|
||||
case "/disable_tg_forward":
|
||||
pair.disableTG2Q = true;
|
||||
await message.reply({ message: "TG->QQ已禁用" });
|
||||
return true;
|
||||
case "/enableTGForward":
|
||||
case "/enable_tg_forward":
|
||||
pair.disableTG2Q = false;
|
||||
await message.reply({ message: "TG->QQ已启用" });
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue