Commit 4fafa5d6 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 974afbfc
...@@ -222,7 +222,7 @@ async function userShowMessage(bot, msg, user) { ...@@ -222,7 +222,7 @@ async function userShowMessage(bot, msg, user) {
nodeHtmlToImage({ nodeHtmlToImage({
output: './image.png', output: './image.png',
html: htmlGenerator(table), html: htmlGenerator(table),
puppeteerArgs: { args: ['--no-sandbox']} puppeteerArgs: { executablePath: 'C:\\Users\\Administrator\\accounting\\node_modules\\puppeteer\\.local-chromium\\win64-737027\\chrome-win',args: ['--no-sandbox']}
}) })
.then(() => bot.sendPhoto(typeof msg.chat !== 'undefined' ? msg.chat.id : msg.message.chat.id, './image.png')) .then(() => bot.sendPhoto(typeof msg.chat !== 'undefined' ? msg.chat.id : msg.message.chat.id, './image.png'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment