fix: 从加入新群的提醒中创建关联群出错

This commit is contained in:
Clansty 2022-03-11 15:48:11 +08:00
parent f68cec6817
commit def77bcfe2
No known key found for this signature in database
GPG Key ID: 05F8479BA63A8E92
1 changed files with 4 additions and 2 deletions

View File

@ -237,8 +237,10 @@ export default class ConfigService {
message: '你加入了一个新的群:\n' +
await this.getAboutText(group) + '\n' +
'要创建关联群吗',
buttons: Button.inline('创建', this.tgBot.registerCallback(
() => this.createGroupAndLink(-group.group_id, group.name, message))),
buttons: Button.inline('创建', this.tgBot.registerCallback(async () => {
await message.delete({ revoke: true });
this.createGroupAndLink(-group.group_id, group.name);
})),
});
return message;
}