Closed chenbb0128 closed 2 years ago
这边的QrCode机制和其他Puppet的有所不同,从服务端返回的是原始图片的完整二进制,如果需要在终端输出,需要做一次"转化"
const fileBox = FileBox.fromBase64(qrcode,'qrcode')
const qrCodeValue = await fileBox.toQRCode()
QrcodeTerminal.generate(qrCodeValue, { small: true })
详细可以参考demo/bot.ts
create bot
在qrCode中输出的长度太长,导致生成的二维码错误,无法扫描登录
version