Whatsapp Net Web api Csharp

Posted by Raja_89 under C# on 8/11/2018 | Points: 10 | Views : 1034 | Status : [Member] | Replies : 1
Is it possible to send and receive messages from whatsapp through Dot net C#
When i am looking they told there is a tool is there (WART) but it is working(based on reviews)

Could you help to find a solution for this



Posted by: Stevenfphelps on: 8/20/2018 [Member] Starter | Points: 25

You can use whatsapp api by copying api files to your project and code “using” in your .cs file
Sending WhatsApp Message Through .NET Application by Using C# Coding

C# Coding

C# Coding : Namespace

using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WhatsApp_Application;
using WhatsAppApi;

C# Coding : To Send WhatsApp Message
namespace WhatsApp_Application

public partial class Form1 : Form
public Form1()

private void btn_send_Click(object sender, EventArgs e)
string from = "9199876543210"; //(Enter Your Mobile Number)
string to = txt_to.Text;
string msg = txt_msg.Text;
WhatsApp wa = new WhatsApp(from, "WhatsAppPassword", "NickName", false, false);
wa.OnConnectSuccess += () =>
MessageBox.Show("Connected to WhatsApp...");
wa.OnLoginSuccess += (phonenumber, data) =>
wa.SendMessage(to, msg);
MessageBox.Show("Message Sent...");
wa.OnLoginFailed += (data) =>
MessageBox.Show("Login Failed : {0} : ", data);

wa.OnConnectFailed += (Exception) =>
MessageBox.Show("Connection Failed...");

I checked this code on the https://nz-casinos.com/jackpot-city-casino-review/ website last year. At me, everything turned out. If messages are not sent, address programmers.

Raja_89, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response