[英]How to fix UPDATE_APP_TO_LOGIN error in TLSharp C#
Hi i am using TLSharp latest version is 0.1.0.574 and when i call var hash = await client.SendCodeRequestAsync("<my_phone>");
嗨,我正在使用TLSharp最新版本是0.1.0.574 ,当我调用var hash = await client.SendCodeRequestAsync("<my_phone>");
i got error System.InvalidOperationException: 'UPDATE_APP_TO_LOGIN'
anyone know how to fix it我收到错误System.InvalidOperationException: 'UPDATE_APP_TO_LOGIN'
任何人都知道如何解决它
My code我的代码
TelegramClient client = new TelegramClient(appid, "apihash",null,"session",null,DataCenterIPVersion.OnlyIPv4);
await client.ConnectAsync();
var hash = await client.SendCodeRequestAsync("<my_phone>");
string code = "";
await client.SignUpAsync("<my_phone>", hash, code, "<fist_name>", "last_name");
The error "UPDATE_APP_TO_LOGIN" happens because your Telegram Client/Library uses an obsolete API layer.发生错误“UPDATE_APP_TO_LOGIN”是因为您的 Telegram 客户端/库使用过时的 API 层。
As stated on its project page, TLSharp is no longer maintained and will not be updated to fix this.如其项目页面所述,TLSharp 不再维护,也不会更新以解决此问题。
You should switch to WTelegramClient which is:您应该切换到WTelegramClient ,即:
Available on Nuget .在Nuget上可用。 ReadMe/Github is here .自述文件/Github在这里。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.