From 2f99f1551e8b0bbcfa855f4c4bc0ff26d9e513c0 Mon Sep 17 00:00:00 2001 From: Nofated <49985975+Nofated095@users.noreply.github.com> Date: Wed, 18 Jan 2023 19:25:49 +0800 Subject: [PATCH] Update InChatCommandsController.ts --- src/controllers/InChatCommandsController.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/controllers/InChatCommandsController.ts b/src/controllers/InChatCommandsController.ts index 9e01bdd..9eb2802 100644 --- a/src/controllers/InChatCommandsController.ts +++ b/src/controllers/InChatCommandsController.ts @@ -13,7 +13,6 @@ export default class InChatCommandsController { constructor( private readonly instance: Instance, - private readonly tgBot: Telegram, private readonly tgUser: Telegram, private readonly oicq: OicqClient, ) { @@ -87,7 +86,7 @@ export default class InChatCommandsController { return true; case '/recover': if (!message.senderId.eq(this.instance.owner)) return true; - const helper = new RecoverMessageHelper(this.instance, this.tgBot, this.tgUser, this.oicq, pair, message); + const helper = new RecoverMessageHelper(this.instance, this.tgBot, this.oicq, pair, message); helper.startRecover().then(() => this.log.info('恢复完成')); return true; }