困难信使电报编程的C# [英] Difficulties in programming of messenger Telegram on C#

查看:383
本文介绍了困难信使电报编程的C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图发送一个code( TLRequestAuthSend code 的),但它不来的。在什么有可能是一个问题?

I try to send a code(TLRequestAuthSendCode) but it doesn't come. In what there can be a problem?

code的部分:

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()));

链接: https://github.com/叶戈尔-ST-dev /目录Sharpogram / BLOB /主/ Sharpogram / RequestApiId.cs

推荐答案

您可以开始使用这个,但我已经在vb.net写它,而不是C#。

You can get started with this, but I have written it in vb.net, not C#.

这将引导您入门从头开始构建自己的电报的API。

It will walk you through getting started building your own Telegram-API from scratch.

也可以尝试,熟悉在线文档,它的硬盘的,但一步一步的说明,我在这的链接有关生成的 AUTHKEY ,应该让你开始。

Also try and get familiar with the online documentation, it's hard but the step by step explanation I gave in that link above on generating your AuthKey, should get you started.

好运

这篇关于困难信使电报编程的C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆