Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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...");
};
}
}
Posted
Comments
F-ES Sitecore 9-Aug-18 8:32am    
I'm sure if you google you'll find lots of examples of how to do this. If you're tried following some and the code isn't working then give more information about any issue you have with your code. Note that "it doesn't work" doesn't give anyone enough information to help you.
Vikram Singh Rathaur 18-Sep-18 7:57am    
have you any idea that how to generate WART password?
Member 13942345 18-Sep-18 8:43am    
Here you can get an application where you can generate password : https://github.com/mgp25/WART

but at my this application NOT work..might be you gave better luck (y)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900