C#上信使电报编程的难点

Ber*_*m00 5 c# api rpc messenger telegram

我尝试发送代码(TLRequestAuthSendCode)但它没有来.什么可能有问题?

部分代码:

TLContext tlContext = new TLApiContext();
TcpClient tcpClient = new TcpClient();
tcpClient.Connect(connections[0].getAddress(), (int)connections[0].getPort());
TLRequestAuthSendCode tlRequestAuthSendCode = new TLRequestAuthSendCode("+79241652563",
0, 19114, "1e489fd15dcff313e5b3e7a08e8fc791", "en");
tlRequestAuthSendCode.serializeBody(new StreamWriter(tcpClient.GetStream()));
Run Code Online (Sandbox Code Playgroud)

链接:https://github.com/egor-st-dev/Sharpogram/blob/master/Sharpogram/RequestApiId.cs

Cha*_*gwu 0

你可以开始使用这个,但我是用 vb.net 编写的,而不是 C#。

它将引导您从头开始构建自己的 Telegram-API。

还要尝试熟悉在线文档,这很难,但我在上面的链接中给出的有关生成AuthKey 的逐步说明应该可以帮助您入门。

祝你好运