Convert ES Module to CJS: Sticker Creation in Node.js
const { sticker } = require('../lib/sticker.js');
const handler = async (m, { conn, text, usedPrefix, command }) => { const stiker = await sticker(null, 'https://telegra.ph/file/5783f1a014c908ab8b487.png', global.packname, global.author); if (stiker) return conn.sendFile(m.chat, stiker, 'sticker.webp', '', m); throw stiker.toString(); };
handler.customPrefix = /^(.sc|sc|sourcecode)$/i; handler.command = new RegExp();
module.exports = handler;
原文地址: https://www.cveoy.top/t/topic/fQRV 著作权归作者所有。请勿转载和采集!