vasani-arpit / WBOT

A simple Web based BOT for WhatsApp™ in NodeJS 😜. Working as of 📅 Feb 4th, 2024
Other
988 stars 313 forks source link

Webhook to return files (pdf,mp3..) #344

Open Chard0212 opened 1 year ago

Chard0212 commented 1 year ago

Instead of only replying text, I need to return files too when I ask

Chard0212 commented 1 year ago

The webhook generate dynamic file that is not found on the root of wbot

On Thu, 4 May 2023, 20:41 Arpit Vasani, @.***> wrote:

You can respond with image as shown in example in bot.json here https://github.com/vasani-arpit/WBOT/blob/master/bot.json#L69

    {
        "contains": [],
        "exact": ["github"],
        "response": "Git Hub Logo",
        "file":"{github.png|github-two.png}",
        "responseAsCaption": false
    }

— Reply to this email directly, view it on GitHub https://github.com/vasani-arpit/WBOT/issues/344#issuecomment-1535164816, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHPTCVYRTNXTD3FTDBWMNTDXEPS5JANCNFSM6AAAAAAXWBCDTU . You are receiving this because you authored the thread.Message ID: @.***>