Whatsapp登录失败未经授权

本文关键字:授权 失败 登录 Whatsapp | 更新日期: 2023-09-27 18:24:53

我正在使用此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登录失败未经授权

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