Commit 5d6d8d4f authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent f2490152
......@@ -219,7 +219,7 @@ async function userShowMessage(bot, msg, user) {
}
bot.sendPhoto(typeof msg.chat !== 'undefined' ? msg.chat.id : msg.message.chat.id, 'image.png')
bot.editMessageText(text, opts)
let html=htmlGenerator(table)
......@@ -228,13 +228,13 @@ let html=htmlGenerator(table)
const page = await browser.newPage();
await page.setContent( html );
await page.screenshot({path: 'image.png'});
bot.sendPhoto(typeof msg.chat !== 'undefined' ? msg.chat.id : msg.message.chat.id, 'image.png')
await browser.close();
bot.sendPhoto(typeof msg.chat !== 'undefined' ? msg.chat.id : msg.message.chat.id, 'C:\\Users\\Administrator\\accounting\\image.png')
}
catch (e)
{
bot.sendPhoto(typeof msg.chat !== 'undefined' ? msg.chat.id : msg.message.chat.id, 'C:\\Users\\Administrator\\accounting\\image.png')
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