我正在使用this API来连接&发送消息给Whatsapp。这是代码。
byte[] nextChallenge = null;
WhatsApp wa = new WhatsApp("91999999999", "your password(WART)", "Name", true, true);
wa.OnConnectSuccess += () =>
{
Response.Write("connect");
wa.OnLoginSuccess += (phno,data) =>
{
wa.SendMessage("to", "msg");
};
wa.OnLoginFailed += (data) =>
{
Response.Write("login failed "+data);
};
wa.Login(nextChallenge);
};
wa.OnConnectFailed+= (ex)=>
{
Response.Write("connection failed");
}
wa.Connect();
我已经使用WART生成了密码,但每次运行代码时都会收到错误消息
Login Failed not- authorized
我在那里做错了什么?
答案 0 :(得分:0)
疣工具现已过时。而且,whatsapp已经删除了密码的概念。它现在使用2步验证方法。不幸的是,在写这篇文章时,2步验证处于BETA状态。