You start with this SO post
You will need to understand how to create AuthKey first.
The Telegram-API documentation is not well written, but if you continue to study it, you will end up with it.
Working with AuthKey generation will help you create a template and functions that you can then use to solve the rest of the API.
Greetings.
Charles Okwuagwu
source share