TelegramMessenger/Telegram-iOS has 6,252,797 source lines of code out of 8,049,911 total lines across 23,340 files, counted from the master ref at commit fb0e62ba8a14 by the OctoCounts tokei engine on 2026-10-23. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-23 (commit fb0e62ba8a14), TelegramMessenger/Telegram-iOS contains 8,049,911 total lines: 6,252,797 code, 872,547 comments, 924,567 blank, across 23,340 files in 61 languages (top: C 31.6%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving TelegramMessenger/Telegram-iOS to commit fb0e62ba8a14, 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.
This is a very large codebase by counted code lines. Code represents 77.7% of all lines, comments represent 10.8%, and the repository averages 268 code lines per file. C accounts for 31.6% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 4474 | 2561002 | 1974657 | 296954 | 289391 |
| Swift | 6368 | 2251042 | 1882131 | 114382 | 254529 |
| C Header | 4934 | 1110986 | 685188 | 262403 | 163395 |
| C++ | 1329 | 635646 | 500997 | 64701 | 69948 |
| GNU Style Assembly | 397 | 337718 | 296715 | 12995 | 28008 |
| Objective-C | 967 | 335727 | 278857 | 9320 | 47550 |
| Assembly | 326 | 212313 | 173337 | 17060 | 21916 |
| JSON | 1921 | 107887 | 107717 | 0 | 170 |
| Perl | 61 | 69308 | 56505 | 6507 | 6296 |
| Bazel | 886 | 49830 | 46707 | 977 | 2146 |
| C++ Header | 114 | 49321 | 39843 | 6151 | 3327 |
| Objective-C++ | 109 | 40356 | 31211 | 2655 | 6490 |
Top language (C 31.6%). Generated at .
TelegramMessenger/Telegram-iOS has 8,049,911 total lines, including 6,252,797 code lines, 872,547 comment lines, and 924,567 blank lines.
OctoCounts resolved the public GitHub repository to commit fb0e62ba8a14, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit fb0e62ba8a14 on 2026-10-23T07:33:45.284451630+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for TelegramMessenger/Telegram-iOS on this page — 6,252,797 code lines across 12 languages, counted by tokei.