# TelegramMessenger/Telegram-iOS SLOC report

> As of 2026-09-14 (commit c75df9501e04), TelegramMessenger/Telegram-iOS contains 6,784,641 total lines: 5,285,043 code, 690,568 comments, 809,030 blank, across 19,506 files in 57 languages (top: C 33.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

TelegramMessenger/Telegram-iOS has 5,285,043 source lines of code out of 6,784,641 total lines across 19,506 files, counted from the c75df9501e049e85c1127e87539ccf2317d01d55 ref at commit c75df9501e04 by the OctoCounts tokei engine on 2026-09-14. 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 TelegramMessenger/Telegram-iOS to commit c75df9501e04, 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 77.9% of all lines, comments represent 10.2%, and the repository averages 271 code lines per file. C accounts for 33.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 3,993 | 2,261,455 | 1,755,878 | 251,204 | 254,373 |
| Swift | 3,882 | 1,649,547 | 1,427,763 | 20,692 | 201,092 |
| C Header | 4,662 | 1,027,246 | 625,974 | 247,950 | 153,322 |
| C++ | 1,366 | 608,709 | 482,030 | 60,189 | 66,490 |
| GNU Style Assembly | 360 | 326,116 | 287,523 | 11,609 | 26,984 |
| Objective-C | 781 | 218,131 | 173,713 | 5,609 | 38,809 |
| Assembly | 305 | 204,165 | 166,271 | 16,367 | 21,527 |
| Perl | 59 | 68,689 | 56,075 | 6,367 | 6,247 |
| C++ Header | 200 | 59,379 | 47,347 | 6,815 | 5,217 |
| Bazel | 798 | 43,653 | 41,285 | 577 | 1,791 |
| Objective-C++ | 106 | 41,657 | 32,230 | 2,621 | 6,806 |
| JSON | 1,724 | 31,769 | 31,769 | 0 | 0 |

Top language (C 33.2%). Generated at 2026-09-14T21:03:18.124176708+00:00. Canonical report: https://octocounts.com/github/TelegramMessenger/Telegram-iOS

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/TelegramMessenger/Telegram-iOS/commit/c75df9501e049e85c1127e87539ccf2317d01d55?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 TelegramMessenger/Telegram-iOS have?

TelegramMessenger/Telegram-iOS has 6,784,641 total lines, including 5,285,043 code lines, 690,568 comment lines, and 809,030 blank lines.

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

OctoCounts resolved the public GitHub repository to commit c75df9501e04, 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-iOS?

This OctoCounts report was generated from c75df9501e049e85c1127e87539ccf2317d01d55 at commit c75df9501e04 on 2026-09-14T21:03:18.124176708+00:00.

## Similar repository reports

- [vcvkk/Telegram-iOS](https://octocounts.com/github/vcvkk/Telegram-iOS) — C, 5,661,625 code lines
- [yugabyte/yugabyte-db](https://octocounts.com/github/yugabyte/yugabyte-db) — C, 4,654,940 code lines
- [zephyrproject-rtos/zephyr](https://octocounts.com/github/zephyrproject-rtos/zephyr) — C, 3,583,127 code lines
- [reactos/reactos](https://octocounts.com/github/reactos/reactos) — C, 7,377,603 code lines
- [tsirysndr/rockbox-zig](https://octocounts.com/github/tsirysndr/rockbox-zig) — C, 2,061,816 code lines
- [libretro/retroarch](https://octocounts.com/github/libretro/retroarch) — C, 2,023,550 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)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [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)
