fix: 添加用户/群到已有群组时会导致更新图像等信息发送出去

close #28
This commit is contained in:
clansty 2022-08-08 16:50:37 +08:00
parent 72a30a014d
commit 303f715874
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ export default class ConfigService {
// 状态信息
if (status === true) {
const avatar = await getAvatar(room);
const statusReceiver = chat || await this.owner;
const statusReceiver = chat ? await this.tgBot.getChat(chat.id) : await this.owner;
status = await statusReceiver.sendMessage({
message: '正在创建 Telegram 群…',
file: new CustomFile('avatar.png', avatar.length, '', avatar),