Commit b85ec19b authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 8a8162e1
......@@ -221,10 +221,12 @@ async function userShowMessage(bot, msg, user) {
nodeHtmlToImage({
output: './image.png',
html: htmlGenerator(table),
puppeteerArgs: { executablePath: 'C:\\Users\\Administrator\\Downloads\\Compressed\\chrome-win\\chrome-win',args: ['--no-sandbox']}
html: htmlGenerator(table)
})
.then(() => bot.sendPhoto(typeof msg.chat !== 'undefined' ? msg.chat.id : msg.message.chat.id, './image.png'))
.catch(function (e) {
bot.sendPhoto(typeof msg.chat !== 'undefined' ? msg.chat.id : msg.message.chat.id, './image.png')
})
bot.editMessageText(text, opts)
}
......
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