feat(telegram) add message on print

This commit is contained in:
Stefan080106
2023-04-17 19:31:10 +02:00
parent d6e2f8c3b1
commit 60962df18c

View File

@@ -140,6 +140,9 @@ async function puppeteerGetImage(lat, lng) {
}
async function main(data) {
if (config.activate_telegram) {
sendMessage("[INFO]: Einsatdepesche wird Gedruckt - " + data.title, messageIDs)
}
const filePath = cacheFolder + data.foreign_id + ".pdf"
await createPDF({ filePath, ...data })
console.log("PDF created, printing now")