Skip to content

Commit

Permalink
[OneBot] Fixed Problem that would not QRCode as PNG
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored and Linwenxuan committed Nov 25, 2023
1 parent 9225ca3 commit 43ce154
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lagrange.OneBot/LagrangeApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ internal LagrangeApp(IHost host)
if (await Instance.FetchQrCode() is { } qrCode)
{
QrCodeHelper.Output(qrCode.Url ?? "");
await File.WriteAllBytesAsync($"qr-{Instance.BotUin}.png", qrCode.QrCode ?? Array.Empty<byte>(), cancellationToken);

await Instance.LoginByQrCode();
}
}
Expand Down

0 comments on commit 43ce154

Please sign in to comment.