C# Whatsapp登录失败-未授权

C# Whatsapp登录失败-未授权,c#,whatsapp,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) =&g

我正在使用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

我在那里做错了什么?

瓦特工具现在已经过时了。此外,whatsapp删除了密码的概念。目前采用两步验证法。不幸的是,在撰写本文时,两步验证处于BETA状态

你解决了这个问题吗?没有,到目前为止,在任何地方都找不到解决方案表单。