Skip to content

simple project to handle incoming WhatsApp API message using VB.Net .

License

Notifications You must be signed in to change notification settings

ultramsg/whatsapp-webhook-vb.net

Repository files navigation

Ultramsg.com whatsapp-webhook-vbnet

simple project to handle incoming WhatsApp message using VB.Net .

by Ultramsg.com

Dependencies

for local development purposes, a tunneling service is required. This example uses ngrok , You can download ngrok from here.

run project

dotnet watch

Start ngrok

ngrok http https://localhost:6000

set Webhook URL

Go to your ultramsg account for set Webhook URL after copying the ngrok url and add /api/ Route like this :

https://501-414-43-1.ngrok.io/api/

and enable this option "Webhook on Received" .

receive WhatsApp messages

now You should be able to receive WhatsApp webhooks .

Example json response

{
  "event_type": "message_received",
  "instanceId": "1150",
  "id": "",
  "referenceId": "",
  "data": {
    "id": "[email protected]_3EB02E5EB89Cff3FB034",
    "from": "[email protected]",
    "to": "[email protected]",
    "author": "",
    "pushname": "Steve",
    "ack": "",
    "type": "chat",
    "body": "Hi,How are you",
    "media": "",
    "fromMe": false,
    "isForwarded": false,
    "isMentioned": false,
    "quotedMsg": {},
    "mentionedIds": [],
    "time": 1650002600
  }
}

Support

Use Issues to contact me

Releases

No releases published

Packages

No packages published