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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With