简体   繁体   English

Whatsapp登录失败未经授权

[英]Whatsapp Login Failed not- authorized

I am using this API to connect & send message to Whatsapp. 我正在使用 API连接并发送消息给Whatsapp。 Here is the code. 这是代码。

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();

I have generated the password with WART, but every time I run the code I get the error message 我已经使用WART生成了密码,但每次运行代码时都会收到错误消息

Login Failed not- authorized

What wrong I am doing there ? 我在那里做错了什么?

Wart Tool is out-dated now. 疣工具现在已经过时了。 moreover, whatsapp has removed the concept of password. 而且,whatsapp已经删除了密码的概​​念。 it uses 2 step verification method now. 它现在使用2步验证方法。 unfortunately, 2 step verification is in BETA state at the time of writing this post. 不幸的是,在写这篇文章时,2步验证处于BETA状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM