# TelegramMessenger/Telegram-iOS SLOC report

> As of 2026-07-24 (commit 6ad963e5b62d), TelegramMessenger/Telegram-iOS contains 7,263,097 total lines: 5,657,212 code, 752,554 comments, 853,331 blank, across 21,218 files in 58 languages (top: C 32.5%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving TelegramMessenger/Telegram-iOS to commit 6ad963e5b62d, 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.4%, and the repository averages 267 code lines per file. C accounts for 32.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 4,287 | 2,368,218 | 1,838,165 | 265,793 | 264,260 |
| Swift | 4,842 | 1,918,995 | 1,653,142 | 43,106 | 222,747 |
| C Header | 4,926 | 1,097,910 | 668,722 | 267,457 | 161,731 |
| C++ | 1,416 | 630,796 | 498,703 | 62,374 | 69,719 |
| GNU Style Assembly | 363 | 327,719 | 288,822 | 11,843 | 27,054 |
| Objective-C | 775 | 218,897 | 174,423 | 5,546 | 38,928 |
| Assembly | 305 | 204,165 | 166,271 | 16,367 | 21,527 |
| Perl | 60 | 69,042 | 56,339 | 6,431 | 6,272 |
| C++ Header | 200 | 59,379 | 47,347 | 6,815 | 5,217 |
| Bazel | 838 | 45,688 | 43,199 | 620 | 1,869 |
| JSON | 1,801 | 32,670 | 32,670 | 0 | 0 |
| Objective-C++ | 112 | 41,388 | 31,942 | 2,648 | 6,798 |

Top language (C 32.5%). Generated at 2026-07-24T15:44:56.253854625+00:00. Canonical report: https://octocounts.com/github/TelegramMessenger/Telegram-iOS

## Report FAQ

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

TelegramMessenger/Telegram-iOS has 7,263,097 total lines, including 5,657,212 code lines, 752,554 comment lines, and 853,331 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 6ad963e5b62d, 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 master at commit 6ad963e5b62d on 2026-07-24T15:44:56.253854625+00:00.

## Similar repository reports

- [vcvkk/Telegram-iOS](https://octocounts.com/github/vcvkk/Telegram-iOS) — C, 5,661,625 code lines
- [Enigma-Soul/yunhu-gram](https://octocounts.com/github/Enigma-Soul/yunhu-gram) — C, 6,358,263 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, 4,486,339 code lines
- [reactos/reactos](https://octocounts.com/github/reactos/reactos) — C, 7,377,603 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
