Update InChatCommandsController.ts

This commit is contained in:
Nofated 2023-01-18 19:25:49 +08:00 committed by GitHub
parent bc8d2c9d55
commit 2f99f1551e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}