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.
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 | 4287 | 2368218 | 1838165 | 265793 | 264260 |
| Swift | 4842 | 1918995 | 1653142 | 43106 | 222747 |
| C Header | 4926 | 1097910 | 668722 | 267457 | 161731 |
| C++ | 1416 | 630796 | 498703 | 62374 | 69719 |
| GNU Style Assembly | 363 | 327719 | 288822 | 11843 | 27054 |
| Objective-C | 775 | 218897 | 174423 | 5546 | 38928 |
| Assembly | 305 | 204165 | 166271 | 16367 | 21527 |
| Perl | 60 | 69042 | 56339 | 6431 | 6272 |
| C++ Header | 200 | 59379 | 47347 | 6815 | 5217 |
| Bazel | 838 | 45688 | 43199 | 620 | 1869 |
| JSON | 1801 | 32670 | 32670 | 0 | 0 |
| Objective-C++ | 112 | 41388 | 31942 | 2648 | 6798 |
Top language (C 32.5%). Generated at 2026-07-24T15:44:56.253854625+00:00.
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.