<code>const EPIC = message.text.body;
await axios({
method: "POST",
url: `https://graph.facebook.com/v18.0/${business_phone_number_id}/messages`,
headers: {
Authorization: `Bearer ${GRAPH_API_TOKEN}`,
},
data: {
messaging_product: "whatsapp",
to: message.from,
text: { body: response.data.id },
},
});
</code>
<code>const EPIC = message.text.body;
await axios({
method: "POST",
url: `https://graph.facebook.com/v18.0/${business_phone_number_id}/messages`,
headers: {
Authorization: `Bearer ${GRAPH_API_TOKEN}`,
},
data: {
messaging_product: "whatsapp",
to: message.from,
text: { body: response.data.id },
},
});
</code>
const EPIC = message.text.body;
await axios({
method: "POST",
url: `https://graph.facebook.com/v18.0/${business_phone_number_id}/messages`,
headers: {
Authorization: `Bearer ${GRAPH_API_TOKEN}`,
},
data: {
messaging_product: "whatsapp",
to: message.from,
text: { body: response.data.id },
},
});
Can anyone tell me how do I send images if i have the base64 encoded image data? Like how would I have to change the POST request to make this work?