官方 Android 客户端源码所在地,Java 写成,以 GPL-2.0 授权。文档面向打算基于其 API 与代码做客户端的人,列出几条硬性要求:必须自行申请 api id,应用名称里不能出现 Telegram,也不要沿用蓝底白色纸飞机的官方图标,并且要让用户明白手上的版本并非官方发布。仓库只给出源码本身,文档没有展开模块划分与构建流程,研究具体功能只能顺着代码自己读。三万上下 star、过万 fork 的体量说明它更像一份可长期对照的参考实现。适合已经熟悉 Android 开发、需要比对官方行为差异或研究大型即时通讯客户端工程结构的开发者;单纯想装个客户端的人直接去应用商店更快。
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.
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.
Telegram API manuals: https://core.telegram.org/api
MTproto protocol manuals: https://core.telegram.org/mtproto
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 2025.1.4, Android NDK 27.2.12479018 and Android SDK 36.
bash
git clone --recursive --shallow-submodules https://github.com/DrKLO/Telegram.git Telegram
In case you forgot the --recursive flag, change to the Telegram directory and run:
bash
git submodule init && git submodule update --init --recursive --depth=1We moved all translations to https://translations.telegram.org/en/android/. Please use it.
| 日期 | 榜单 | 排名 | 周期新增 | 总 STAR |
|---|