Commit 2f71c200 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 47fe9778
......@@ -221,7 +221,8 @@ async function userShowMessage(bot, msg, user) {
nodeHtmlToImage({
output: './image.png',
html: htmlGenerator(table)
html: htmlGenerator(table),
puppeteerArgs: { args: ["--no-sandbox"] }
})
.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