Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting started with the Telegram API: Any useful resource? [closed]

there are already some threads on the class Telegram API, but none was really helpful.

I'm currently trying to implement it in an Android app in order to send messages through Telegram. The documentation they provide is close to incomprehensible, so do you know any good resource or guide on the API?

It seems to be necessary to instanciate TelegramApi. But this class isn't even included in the telegram .jar archive.

Does anyone have a tip on how to get started with the implementation?

Thanks.

like image 334
Emanuel0101 Avatar asked Aug 20 '15 12:08

Emanuel0101


People also ask

How can I access Telegram API?

You will have to visit https://my.telegram.org/ and login with your phone number and confirmation code which will be sent on Telegram, and fill in the form under “API Development Tools” with an app title and short name. Afterwards, you can find your api_id and api_hash at the same place.

Is Telegram API open source?

It can be used on Android, iOS, Windows, macOS, Linux and virtually any other system. The library is open source and compatible with virtually any programming language.

Why is my Telegram Bot not working?

Suggestions: Ensure the Bot is in the group and as an admin. Try adding a new access token (revoke existing API key and create a new one then replace in plugin settings) If you edited the bot with @BotFather, make sure to restore it to the default settings.


1 Answers

To get stared you need to first implement Telegram AuthKey.

The documentation you need is here:

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

and here

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

What this gives you is a starting point into understanding the documentation writing style for Telegram API, as well as a grasp of the basic patterns for interacting with Telegram-API

I had put together a detailed write up on the process i took here: https://stackoverflow.com/a/32809138/44080

What you should aim at is first Successfully getting your Telegram AuthKey, understanding the data you are sending and the structure of what you are receiving back.

The procedures and patterns you build along the way will be usable for further exploration of the Telegram API

like image 125
Charles Okwuagwu Avatar answered Sep 29 '22 19:09

Charles Okwuagwu