1
You must provide an image url so instead of your current fetch where you try to get the image you have to provide the quickchart link like so:
let com = `https://quickchart.io/chart?chart={
type: 'line',
data: {
labels: ['Q1', 'Q2', 'Q3', 'Q4'],
datasets: [{
label: 'Revenue',
data: [100, 200, 300, 400],fill:false
}]
}
}&backgroundColor=transparent&width=500&height=300&devicePixelRatio=1.0&format=png&version=2.9.3`
if (message) {
// rest of code
}
Source:stackexchange.com