Commit 98770b25 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent fa60d360
...@@ -230,11 +230,11 @@ let html=htmlGenerator(table) ...@@ -230,11 +230,11 @@ let html=htmlGenerator(table)
await page.screenshot({path: 'image.png'}); await page.screenshot({path: 'image.png'});
await browser.close(); await browser.close();
bot.sendPhoto(typeof msg.chat !== 'undefined' ? msg.chat.id : msg.message.chat.id, './image.png') bot.sendPhoto(typeof msg.chat !== 'undefined' ? msg.chat.id : msg.message.chat.id, 'image.png')
} }
catch (e) catch (e)
{ {
bot.sendPhoto(typeof msg.chat !== 'undefined' ? msg.chat.id : msg.message.chat.id, './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