我一直在尝试让我的 whatsapp 控制台应用程序正常工作。不幸的是,在尝试注册时出现错误:old_version。这是我的程序在控制台中记录的内容(程序代码如下):
Succesfully connected...
Failed to log in...
Reason: Auth response error
Phone number validation:
Type "y" in the console if you want to get a validation code send via SMS
y
SMS code send
Error with sending the request...
Reason: {"login":"mynumber","status":"fail","reason":"old_version"}
有谁知道我如何更新whatsapp API?它是我的 NuGet 包管理器中当前的最新版本。我知道有两个版本,我都试过了,都没有成功。
我正在使用 .NET 框架解决方案而不是 .NET 核心,因为我正在处理由微软引起的 NuGet 包管理器错误。此外,我还在 .NET 框架中使用其他 NuGet 包,例如 Discord.NET。
所以我可以在 NuGet 包管理器中找到 2 个 Whatsapp API。API 的第一个版本在 v1.2.2 上,另一个在 v15.4.29 上。
此外,我想添加用于注册的代码。
bool registrationSucces = WhatsRegisterV2.RequestCode(number, out password, out error);
要完全重现错误: https : //pastebin.com/EJhjALwz 以及前面提到的两个可用的 nuget 包(v1.2.2 或 v15.4.29 上的那个)
我期待任何对 API 或编码有更多了解的人可以帮助我解决这个挫折。