Fallback to sticker element screenshot

This commit is contained in:
sevenhill
2026-07-06 14:00:37 +03:00
parent 342fdae404
commit d18eefdda8
-4
View File
@@ -1525,10 +1525,6 @@ async function downloadDomStickerThroughScreenshot(p, request) {
return { contentType: "image/png", buffer: canvasCapture.buffer };
}
if (canvasCapture.hasCanvas && !canvasCapture.blocked) {
throw new Error(`${kindLabel} canvas is blank.`);
}
let buffer;
if (request?.acceptSmall) {
buffer = await screenshotClip(await currentBoxOrMeta());