Whatsapp登录失败未经授权

Har*_*ava 5 c# whatsapp

我正在使用 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();
Run Code Online (Sandbox Code Playgroud)

我已经使用WART生成了密码,但每次运行代码时都会收到错误消息

Login Failed not- authorized
Run Code Online (Sandbox Code Playgroud)

我在那里做错了什么?

小智 0

疣工具现在已经过时了。此外,whatsapp已经删除了密码的概​​念。现在使用两步验证方法。不幸的是,在撰写本文时,两步验证处于测试状态。