feat(telegram) add message on print
This commit is contained in:
@@ -140,6 +140,9 @@ async function puppeteerGetImage(lat, lng) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function main(data) {
|
async function main(data) {
|
||||||
|
if (config.activate_telegram) {
|
||||||
|
sendMessage("[INFO]: Einsatdepesche wird Gedruckt - " + data.title, messageIDs)
|
||||||
|
}
|
||||||
const filePath = cacheFolder + data.foreign_id + ".pdf"
|
const filePath = cacheFolder + data.foreign_id + ".pdf"
|
||||||
await createPDF({ filePath, ...data })
|
await createPDF({ filePath, ...data })
|
||||||
console.log("PDF created, printing now")
|
console.log("PDF created, printing now")
|
||||||
|
|||||||
Reference in New Issue
Block a user