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

init

parent af296d02
...@@ -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: { 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')) .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