As the title describe my question, I just started recently developing a WhatsApp Bot using whatsapp-web.js but the problem is that i'm bad at reading documentation, so my question is :
Does anyone knows how to send anime and manga latest news to whatsapp using an api, like MyAnimeList Api or MYANIMENEWS api, or any other api
My code below which i tried :
client.on('message', async message => {
const content = message.body
if (content === "anime-news") {
const animeDb = await axios("https://cdn.animenewsnetwork.com/encyclopedia/api.xml?anime=id")
.then(res => res.data)
client.sendMessage(message.from, await MessageMedia.fromUrl('animeDb.url'))
});