# TelegramMessenger/Telegram-Android SLOC report

> As of 2026-11-12 (commit 21f7d109da6a), TelegramMessenger/Telegram-Android contains 3,227,744 total lines: 2,556,436 code, 336,566 comments, 334,742 blank, across 8,583 files in 32 languages (top language: Java 55.8%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

TelegramMessenger/Telegram-Android has 2,556,436 source lines of code out of 3,227,744 total lines across 8,583 files, counted with tokei from the master ref at commit 21f7d109da6a on November 12, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving TelegramMessenger/Telegram-Android to commit 21f7d109da6a, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

TelegramMessenger/Telegram-Android: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 79.2% of all lines, comments represent 10.4%, and the repository averages 298 code lines per file. Java accounts for 55.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 2,330 | 1,634,059 | 1,426,942 | 46,072 | 161,045 |
| C++ | 2,011 | 690,628 | 526,115 | 79,201 | 85,312 |
| C | 288 | 423,734 | 299,576 | 95,233 | 28,925 |
| C Header | 2,466 | 386,993 | 225,896 | 107,231 | 53,866 |
| XML | 660 | 33,931 | 32,163 | 773 | 995 |
| JSON | 581 | 15,862 | 15,862 | 0 | 0 |
| SVG | 46 | 4,864 | 4,864 | 0 | 0 |
| C++ Header | 4 | 7,864 | 4,182 | 2,836 | 846 |
| Kotlin | 34 | 3,438 | 2,767 | 78 | 593 |
| Shell | 25 | 3,497 | 2,454 | 599 | 444 |
| Protocol Buffers | 19 | 3,959 | 2,442 | 1,101 | 416 |
| Python | 11 | 2,747 | 2,309 | 77 | 361 |

Top language: Java 55.8%. Generated on November 12, 2026. Canonical report: https://octocounts.com/github/TelegramMessenger/Telegram-Android

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/TelegramMessenger/Telegram-Android/commit/21f7d109da6ab3506c9e9577f98c6a38771ab335?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=8bd2e1103e3f1cb5259e9b985120c5cdcc9458899d95829656cd1b194d1c630c).

## Report FAQ

### How many lines of code does TelegramMessenger/Telegram-Android have?

TelegramMessenger/Telegram-Android has 2,556,436 lines of code, plus 336,566 comment lines and 334,742 blank lines, for 3,227,744 total lines at commit 21f7d109da6a on November 12, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the TelegramMessenger/Telegram-Android line count measured?

OctoCounts resolved the public GitHub repository to commit 21f7d109da6a, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for TelegramMessenger/Telegram-Android?

This OctoCounts report was generated from master at commit 21f7d109da6a on November 12, 2026.

## Similar repository reports

- [arsLan4k1390/Cherrygram](https://octocounts.com/github/arsLan4k1390/Cherrygram) — Java, 2,588,815 code lines
- [Ettacent/NimarkoGram](https://octocounts.com/github/Ettacent/NimarkoGram) — Java, 2,876,327 code lines
- [NationalSecurityAgency/ghidra](https://octocounts.com/github/NationalSecurityAgency/ghidra) — Java, 2,166,789 code lines
- [elastic/elasticsearch](https://octocounts.com/github/elastic/elasticsearch) — Java, 3,326,226 code lines
- [metasfresh/metasfresh](https://octocounts.com/github/metasfresh/metasfresh) — Java, 3,502,686 code lines
- [apache/doris](https://octocounts.com/github/apache/doris) — Java, 1,797,215 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [Kubernetes vs Docker Compose](https://octocounts.com/compare/kubernetes-vs-docker-compose)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
