()
| 40 | let cachedPatternImage = null; |
| 41 | async function getPatternImage() { |
| 42 | if (!cachedPatternImage) { |
| 43 | cachedPatternImage = await loadImage(path.join(QUOTE_ASSETS_DIR, "pattern_02.png")); |
| 44 | } |
| 45 | return cachedPatternImage; |
| 46 | } |
| 47 | |
| 48 | // ── TeleBox: bridge avatarBuffer → avatarCanvas ─────────────────────── |
| 49 | // quote.ts attaches the sender/reply/forward avatar as a raw Buffer in |
| 50 | // `message.avatarBuffer` (downloaded via client.downloadProfilePhoto and |