# telegramdesktop/tdesktop SLOC report

> telegramdesktop/tdesktop: 1,152,611 code lines at commit bf4f714036f2, counted with tokei-15.0.0 on 2026-11-13. Saved result 3b2a445d0d7e38c95d5609471699a181d59d3fb2e2b5f0682d42c0ed466c1e0a.

telegramdesktop/tdesktop has 1,152,611 source lines of code out of 1,419,221 total lines across 3,681 files, counted with tokei from the dev ref at commit bf4f714036f2 on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving telegramdesktop/tdesktop to commit bf4f714036f2, 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

telegramdesktop/tdesktop: 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 81.2% of all lines, comments represent 9.9%, and the repository averages 313 code lines per file. C++ accounts for 85.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 1,532 | 1,098,271 | 988,784 | 20,250 | 89,237 |
| C Header | 1,648 | 184,319 | 139,054 | 13,597 | 31,668 |
| Objective-C++ | 32 | 9,767 | 8,139 | 349 | 1,279 |
| CMake | 40 | 6,824 | 6,039 | 363 | 422 |
| CSS | 4 | 2,721 | 2,700 | 0 | 21 |
| SVG | 338 | 2,501 | 2,501 | 0 | 0 |
| GLSL | 37 | 2,129 | 1,790 | 80 | 259 |
| JavaScript | 4 | 1,478 | 1,396 | 2 | 80 |
| Python | 9 | 977 | 784 | 37 | 156 |
| YAML | 1 | 547 | 521 | 0 | 26 |
| XML | 7 | 872 | 335 | 519 | 18 |
| Objective-C | 1 | 285 | 248 | 10 | 27 |
| Batch | 2 | 151 | 135 | 0 | 16 |
| JSON | 3 | 84 | 83 | 0 | 1 |
| HTML | 1 | 45 | 45 | 0 | 0 |
| Shell | 2 | 40 | 30 | 1 | 9 |
| C | 1 | 32 | 19 | 7 | 6 |
| MSBuild | 1 | 8 | 8 | 0 | 0 |
| Markdown | 14 | 2,498 | 0 | 1,955 | 543 |
| Plain Text | 4 | 105,672 | 0 | 103,768 | 1,904 |

Top language: C++ 85.8%. Generated on November 13, 2026. Canonical report: https://octocounts.com/github/telegramdesktop/tdesktop/commit/bf4f714036f21c750d535dab199c811b3f9bfdd4?reportId=3b2a445d0d7e38c95d5609471699a181d59d3fb2e2b5f0682d42c0ed466c1e0a&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/telegramdesktop/tdesktop/commit/bf4f714036f21c750d535dab199c811b3f9bfdd4?reportId=3b2a445d0d7e38c95d5609471699a181d59d3fb2e2b5f0682d42c0ed466c1e0a&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does telegramdesktop/tdesktop have?

telegramdesktop/tdesktop has 1,152,611 lines of code, plus 140,938 comment lines and 125,672 blank lines, for 1,419,221 total lines at commit bf4f714036f2 on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the telegramdesktop/tdesktop line count measured?

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

### What commit was counted for telegramdesktop/tdesktop?

This OctoCounts report was generated from dev at commit bf4f714036f2 on November 13, 2026.

## Similar repository reports

- [duckdb/duckdb](https://octocounts.com/github/duckdb/duckdb) — C++, 1,159,374 code lines
- [Ka1-S/LYNX-SHARE](https://octocounts.com/github/Ka1-S/LYNX-SHARE) — C++, 1,163,820 code lines
- [xbmc/xbmc](https://octocounts.com/github/xbmc/xbmc) — C++, 1,122,103 code lines
- [SerenityOS/serenity](https://octocounts.com/github/SerenityOS/serenity) — C++, 1,118,898 code lines
- [lila-3d/Lila](https://octocounts.com/github/lila-3d/Lila) — C++, 1,110,624 code lines
- [metawka/exDesktop](https://octocounts.com/github/metawka/exDesktop) — C++, 1,203,501 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [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)
