MCPcopy Index your code
hub / github.com/NextAlone/Nagram

github.com/NextAlone/Nagram @release-9.2.1_2962

Chat with this repo
repository ↗ · DeepWiki ↗ · release release-9.2.1_2962 ↗ · + Follow
106,679 symbols 380,662 edges 8,960 files 14,594 documented · 14%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Telegram messenger for 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.

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.

  1. Obtain your own api_id for your application.
  2. Please do not use the name Telegram for your app — or make sure your users understand that it is unofficial.
  3. Kindly do not use our standard logo (white paper plane in a blue circle) as your app's logo.
  4. Please study our security guidelines and take good care of your users' data and privacy.
  5. Please remember to publish your code too in order to comply with the licences.

API, Protocol documentation

Telegram API manuals: https://core.telegram.org/api

MTproto protocol manuals: https://core.telegram.org/mtproto

Compilation Guide

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

  1. Download the Telegram source code from https://github.com/DrKLO/Telegram ( git clone https://github.com/DrKLO/Telegram.git )
  2. Copy your release.keystore into TMessagesProj/config
  3. Fill out RELEASE_KEY_PASSWORD, RELEASE_KEY_ALIAS, RELEASE_STORE_PASSWORD in gradle.properties to access your release.keystore
  4. 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.
  5. Open the project in the Studio (note that it should be opened, NOT imported).
  6. 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.
  7. You are ready to compile Telegram.

Localization

We moved all translations to https://translations.telegram.org/en/android/. Please use it.

Extension points exported contracts — how you extend this code

BlockingOperation (Interface)
Utility interface to be used with executeUninterruptibly() to wait for blocking operations to complete without getting i [165 …
TMessagesProj/src/main/java/org/webrtc/ThreadUtils.java
ClientSessionCache (Interface)
ClientSessionCache is a cache of ClientSessionState objects that can be used by a client to resume a TLS session with a [6 …
TMessagesProj/jni/boringssl/ssl/test/runner/common.go
VideoDecoderFactory (Interface)
Factory for creating VideoDecoders. [6 implementers]
TMessagesProj/src/main/java/org/webrtc/VideoDecoderFactory.java
ServerSessionCache (Interface)
ServerSessionCache is a cache of sessionState objects that can be used by a client to resume a TLS session with a given [6 …
TMessagesProj/jni/boringssl/ssl/test/runner/common.go
VideoSink (Interface)
Java version of rtc::VideoSinkInterface. [8 implementers]
TMessagesProj/src/main/java/org/webrtc/VideoSink.java
Object (Interface)
(no doc) [5 implementers]
TMessagesProj/jni/boringssl/util/fipstools/acvp/acvptool/interactive.go
RendererEvents (Interface)
Interface for reporting rendering events. [6 implementers]
TMessagesProj/src/main/java/org/webrtc/RendererCommon.java
MultiIdTestingFunc (FuncType)
Utility used for running same test with all registered prime fields
TMessagesProj/jni/boringssl/ssl/test/runner/sike/sike_test.go

Core symbols most depended-on inside this repo

dp
called by 13656
TMessagesProj/src/main/java/org/telegram/messenger/AndroidUtilities.java
get
called by 11739
TMessagesProj/src/main/java/org/telegram/ui/PhotoViewer.java
getString
called by 6816
TMessagesProj/src/main/java/org/telegram/messenger/LocaleController.java
add
called by 4402
TMessagesProj/src/main/java/org/telegram/ui/Adapters/DialogsAdapter.java
size
called by 3785
TMessagesProj/src/main/java/org/telegram/ui/Components/TableLayout.java
addView
called by 3650
TMessagesProj/src/main/java/androidx/recyclerview/widget/ChildHelper.java
getColor
called by 3323
TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java
get
called by 2747
TMessagesProj/src/main/java/org/telegram/ui/Components/SimpleFloatPropertyCompat.java

Shape

Method 69,572
Function 21,630
Class 13,384
Enum 1,252
Interface 618
Struct 183
TypeAlias 38
FuncType 2

Languages

C++51%
Java40%
C8%
Go1%
Python1%

Modules by API surface

TMessagesProj/src/main/java/androidx/recyclerview/widget/RecyclerView.java723 symbols
TMessagesProj/src/main/java/org/telegram/ui/ArticleViewer.java535 symbols
TMessagesProj/src/main/java/org/telegram/ui/PhotoViewer.java525 symbols
TMessagesProj/src/main/java/org/telegram/ui/Components/EmojiView.java388 symbols
TMessagesProj/src/main/java/org/telegram/ui/Components/ChatActivityEnterView.java348 symbols
TMessagesProj/src/main/java/org/telegram/ui/Cells/ChatMessageCell.java346 symbols
TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java309 symbols
TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java304 symbols
TMessagesProj/jni/boringssl/ssl/ssl_lib.cc293 symbols
TMessagesProj/src/main/java/org/telegram/ui/DialogsActivity.java288 symbols
TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java276 symbols
TMessagesProj/jni/voip/webrtc/video/video_send_stream_tests.cc273 symbols

For agents

$ claude mcp add Nagram \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page