# telegramdesktop/tdesktop SLOC report

> As of 2026-09-07 (commit 80158983dba0), telegramdesktop/tdesktop contains 1,159,848 total lines: 1,012,048 code, 33,975 comments, 113,825 blank, across 3,264 files in 20 languages (top: C++ 85.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

telegramdesktop/tdesktop has 1,012,048 source lines of code out of 1,159,848 total lines across 3,264 files, counted from the 80158983dba09d3bf5d96701f21473d6c34bf5f5 ref at commit 80158983dba0 by the OctoCounts tokei engine on 2026-09-07. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving telegramdesktop/tdesktop to commit 80158983dba0, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 87.3% of all lines, comments represent 2.9%, and the repository averages 310 code lines per file. C++ accounts for 85.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 1,356 | 960,762 | 863,768 | 16,441 | 80,553 |
| C Header | 1,468 | 166,966 | 126,330 | 11,555 | 29,081 |
| Objective-C++ | 30 | 9,101 | 7,595 | 310 | 1,196 |
| CMake | 28 | 5,285 | 4,774 | 220 | 291 |
| CSS | 4 | 2,783 | 2,762 | 0 | 21 |
| SVG | 308 | 2,323 | 2,323 | 0 | 0 |
| JavaScript | 4 | 1,638 | 1,551 | 0 | 87 |
| GLSL | 35 | 1,556 | 1,291 | 37 | 228 |
| YAML | 1 | 493 | 470 | 0 | 23 |
| XML | 6 | 857 | 320 | 519 | 18 |
| Python | 6 | 377 | 295 | 28 | 54 |
| Objective-C | 1 | 285 | 248 | 10 | 27 |

Top language (C++ 85.3%). Generated at 2026-09-07T08:16:48.278947883+00:00. Canonical report: https://octocounts.com/github/telegramdesktop/tdesktop

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/telegramdesktop/tdesktop/commit/80158983dba09d3bf5d96701f21473d6c34bf5f5?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).

## Report FAQ

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

telegramdesktop/tdesktop has 1,159,848 total lines, including 1,012,048 code lines, 33,975 comment lines, and 113,825 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 80158983dba0, 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 80158983dba09d3bf5d96701f21473d6c34bf5f5 at commit 80158983dba0 on 2026-09-07T08:16:48.278947883+00:00.

## Similar repository reports

- [dolphin-emu/dolphin](https://octocounts.com/github/dolphin-emu/dolphin) — C++, 1,016,488 code lines
- [0FL01/AyuGramDesktop-flatpak](https://octocounts.com/github/0FL01/AyuGramDesktop-flatpak) — C++, 1,018,647 code lines
- [ammaarreshi/Generals-Mac-iOS-iPad](https://octocounts.com/github/ammaarreshi/Generals-Mac-iOS-iPad) — C++, 1,033,110 code lines
- [duckdb/duckdb](https://octocounts.com/github/duckdb/duckdb) — C++, 1,090,652 code lines
- [organicmaps/organicmaps](https://octocounts.com/github/organicmaps/organicmaps) — C++, 887,058 code lines
- [apache/trafficserver](https://octocounts.com/github/apache/trafficserver) — C++, 880,616 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)
- [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)
