Telegram is a messaging app with a focus on speed and security. It’s superfast, simple and free.
This repo contains the official source code for Telegram App for Android.
Creating your Telegram Application
We welcome all developers to use our API and source code to create applications on our platform.
There are several things we require from all developers for the moment.
Note: In order to support reproducible builds, this repo contains dummy release.keystore, google-services.json and filled variables inside BuildVars.java. Before publishing your own APKs please make sure to replace all these files with your own.
You will require Android Studio 3.4, Android NDK rev. 20 and Android SDK 8.1
Copy your release.keystore into TMessagesProj/config
Fill out RELEASE_KEY_PASSWORD, RELEASE_KEY_ALIAS, RELEASE_STORE_PASSWORD in gradle.properties to access your release.keystore
Go to https://console.firebase.google.com/, create two android apps with application IDs org.telegram.messenger and org.telegram.messenger.beta, turn on firebase messaging and download google-services.json, which should be copied to the same folder as TMessagesProj.
Open the project in the Studio (note that it should be opened, NOT imported).
Fill out values in TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java – there’s a link for each of the variables showing where and which data to obtain.