Git Product home page Git Product logo

whatsapp-webhook-csharp's Introduction

Ultramsg.com whatsapp-webhook-csharp

simple project to handle incoming WhatsApp message using c#.

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://61-44-136-9.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]_3EB02E5EB89CE03FB034",
    "from": "[email protected]",
    "to": "[email protected]",
    "author": "",
    "pushname": "E.St",
    "ack": "",
    "type": "chat",
    "body": "Hi",
    "media": "",
    "fromMe": false,
    "isForwarded": false,
    "isMentioned": false,
    "quotedMsg": {},
    "mentionedIds": [],
    "time": 1650002663
  }
}

Support

Use Issues to contact me

whatsapp-webhook-csharp's People

Contributors

ultramsg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

whatsapp-webhook-csharp's Issues

Sending messages

Hi, this project looks great.
Your API support message sending also?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.