Commit 26ac8507 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent af296d02
......@@ -222,7 +222,7 @@ async function userShowMessage(bot, msg, user) {
nodeHtmlToImage({
output: './image.png',
html: htmlGenerator(table),
puppeteerArgs: { executablePath: '/usr/bin/chromium-browser'}
puppeteerArgs: { executablePath: '/usr/bin/chromium-browser',args: ['--no-sandbox', '--headless', '--disable-gpu']}
})
.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