如何用电报API互动 [英] How to interact with Telegram API

查看:660
本文介绍了如何用电报API互动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很困惑,我试图用电报的API,阅读了大量的文件在 http://core.telegram.org后

I'm really confused as I'm trying to use Telegram's APIs after reading a lot of the documentation on http://core.telegram.org.

我已经注册我的应用程序,并得到了hash_id和所有的东西。但我不知道从哪里开始说起。

I have registered my app and got a hash_id and all of that stuff. But I'm not sure where to begin with.

我曾与Spotify的API之前的工作,并能与它使用<一个互动href=\"http://api.spotify.com/v1/method?params:values\">http://api.spotify.com/v1/method?params:values形式。

I had worked with Spotify's API before, and was able to interact with it using http://api.spotify.com/v1/method?params:values form.

我找不到电报的API的URL。我在互联网上搜索了很多,但找不到任何有用的例子。

I can't find the URL for Telegram's API. I also searched a lot on the internet but couldn't find any useful examples.

有谁知道如何开始使用电报的API工作什么?
任何帮助将是AP preciated。

Does anyone know anything about getting started to work with Telegram's API? Any help would be appreciated.

推荐答案

如果你真的想了解从头电报API开发。我的建议是在这里遵循的步骤

If you really want to understand Telegram API development from scratch. My advice would be to follow the steps here

https://core.telegram.org/mtproto/auth_key

在这里

<一个href=\"https://core.telegram.org/mtproto/samples-auth_key\">https://core.telegram.org/mtproto/samples-auth_key

尝试成功生成AUTHKEY。

Try to successfully generate an AuthKey.

此练习将让您熟悉足够的基础知识,同时帮助你建立程序,你需要做电报API进一步的工作。

This exercise will get you familiar with enough of the basics as well as help you build up routines you will need to do further work on Telegram API.

我所概述的基础知识,为您在这个 SO 后上手。

I have outlined the basics for you to get started in this SO post.

此外,我认为网络的API文档也不是那么好写的,但是在读的API文档以下一步上述步骤,的只是AUTHKEY代的,会让你熟悉的语言和API的作者的写作风格

Also i think the API documentation online is not so well-written, but following the above step by step while reading the API documentation, for just AuthKey generation, would get you familiar with the language and writing style of the authors of the API

好运。

这篇关于如何用电报API互动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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