Work with the `telegramdesktop/tdesktop` repository, the official Telegram Desktop C++/Qt client. Use when Codex needs to inspect, build, debug, document, review, or modify Telegram Desktop code, especially in `Telegram/SourceFiles/**`, `.style` UI files, `Telegram/Resources/langs/lang.strings`, `Telegram/SourceFiles/mtproto/scheme/*.tl`, build scripts under `Telegram/build/**`, platform code under `Telegram/SourceFiles/platform/**`, and repository guidance in `AGENTS.md` and `REVIEW.md`.
Treat this repository as a large C++/Qt desktop application with strong local conventions and generated flows. Recover the exact subsystem first, then edit the smallest surface that keeps build, style, localization, and API contracts aligned.
AGENTS.md for build assumptions, stop conditions, and high-level conventions.REVIEW.md for the mechanical style rules the repository expects..cpp/.h plus the related .style file.Telegram/Resources/langs/lang.strings and the corresponding tr::lng_... calls.Telegram/SourceFiles/mtproto/scheme/api.tl or mtproto.tl before touching request code.docs/building-*.md, Telegram/configure.*, and Telegram/build/**..style files and consume them through st::.lang.strings and use tr:: helpers in code.MTP... types.out/ configured, prefer cmake --build out --config Debug --target Telegram.AGENTS.md over generic build habits when the two disagree..style, lang.strings, and .tl schema files over assumptions drawn from other Qt or Telegram clients.out/ unless the user explicitly asks for generator or build-output work..style value is appropriate.std::optional::value(); use value_or, operator bool, or dereference after checks.asUser() plus null-check over isUser() followed by cast.TDESKTOP_API_ID and TDESKTOP_API_HASH) and platform-specific dependency setup.SourceFiles hotspots, and where to look for each class of change.