fix: 发送二维码的时候不是图片

This commit is contained in:
凌莞 2022-02-18 14:36:17 +08:00
parent fda8e8bf30
commit f16b57bf8b
No known key found for this signature in database
GPG Key ID: 05F8479BA63A8E92
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import createOicq from '../client/oicq';
import { Button } from 'telegram/tl/custom/button';
import { Api } from 'telegram';
import phone = Api.phone;
import { CustomFile } from 'telegram/client/uploads';
export default class SetupService {
private owner: TelegramChat;
@ -80,7 +81,7 @@ export default class SetupService {
onQrCode: async (file) => {
await this.owner.sendMessage({
message: '请使用已登录这个账号的手机 QQ 扫描这个二维码授权',
file,
file: new CustomFile('qrcode.png', file.length, '', file),
buttons: Button.text('我已扫码', true, true),
});
await this.waitForOwnerInput();