From f16b57bf8b51955f8aabab5ae8673d749561e557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=8C=E8=8E=9E?= Date: Fri, 18 Feb 2022 14:36:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=91=E9=80=81=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E7=9A=84=E6=97=B6=E5=80=99=E4=B8=8D=E6=98=AF=E5=9B=BE?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/SetupService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/SetupService.ts b/src/services/SetupService.ts index d4b8ce4..bbd58d1 100644 --- a/src/services/SetupService.ts +++ b/src/services/SetupService.ts @@ -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();