How to interact with Telegram API

Ramtin Soltani picture Ramtin Soltani · Jul 5, 2015 · Viewed 48.9k times · Source

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.

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

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.

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.

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

Answer

Charles Okwuagwu picture Charles Okwuagwu · Sep 27, 2015

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

and here

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

Try to successfully generate an AuthKey.

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.

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

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

Good Luck.