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
我在那里做错了什么?