I want to develop .Net c# desktop application to send bulk message through whatsapp, but it require some WhatsAppPassword to pass in my code and after some research I found that WhatsAppPassword will generate through WART application, can anyone please help me to provide that particular WART application to generate WhatsAppPassword ?
What I have tried:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
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.Login();
};
wa.OnConnectFailed += (Exception) =>
{
MessageBox.Show("Connection Failed...");
};
}
}