This is Bush2021/ayugram, a fork of AyuGram/AyuGramDesktop, which forks telegramdesktop/tdesktop. Read alongside AGENTS.md.
| Name | URL | Role |
|---|---|---|
origin |
github.com/Bush2021/ayugram | This repo (push target) |
ayu |
github.com/AyuGram/AyuGramDesktop | AyuGramDesktop upstream |
tg |
github.com/telegramdesktop/tdesktop | Telegram Desktop upstream |
pr |
github.com/Bush2021/AyuGramDesktop | Personal AyuGramDesktop fork (PRs) |
/sync-tg— mergetg/devintodev. Conflict rule: keep both features — preserve ayu, update ayu code to match upstream API changes; don't revert upstream./sync-ayu— reconstruct durable fork intent on the latestayu/dev. It drops upstream-equivalent and temporary history, preserves merge-only behavior, reconciles fork submodules, and requires exact--force-with-leasepushes after verification.vs2026branch — thin shim of VS 2026 build adjustments on top ofdev. After any change todev:If vs2026 grows beyond build adjustments, fold the non-VS-specific parts intogit checkout vs2026 && git rebase dev && git push --force-with-lease origin vs2026 && git checkout dev
dev.
These five point at our (or AyuGram's) fork — not desktop-app directly:
| Path | Direct fork | Ultimate upstream |
|---|---|---|
Telegram/lib_ui |
github.com/Bush2021/lib_ui | github.com/desktop-app/lib_ui |
Telegram/lib_tl |
github.com/Bush2021/lib_tl | github.com/desktop-app/lib_tl |
Telegram/codegen |
github.com/Bush2021/codegen | github.com/desktop-app/codegen |
cmake |
github.com/Bush2021/cmake_helpers | github.com/desktop-app/cmake_helpers |
Telegram/lib_icu |
github.com/AyuGram/lib_icu | github.com/desktop-app/lib_icu |
SHA-conflict policy: per submodule, either keep the fork SHA (if the fork is already ahead of its desktop-app upstream) or advance the fork first by rebasing onto upstream and force-pushing. Procedure lives in /sync-tg.
All other ~23 submodules point straight at desktop-app or third-party — let them flow with upstream bumps.
Never run git submodule update --remote in the main repo. It overwrites hand-picked SHAs with whatever the tracking branch tip happens to be.
Every merge must preserve these paths:
Telegram/SourceFiles/ayu/Telegram/lib_ui/ayu/(inside the forked lib_ui)Telegram/Resources/art/ayu/,icons/ayu/,qrc/ayu/Telegram/SourceFiles/**/*.style— entries with theayu_prefix (mixed into upstream style files)Telegram/CMakeLists.txt— lines mentioningayu/
- Document every feature. A change that adds or changes a user-visible feature of this fork also updates the "What this fork adds" section of
README.mdin the same change.README-RU.mdis upstream AyuGram's text; leave it alone. - Copyright. A new source file this fork adds starts with the AyuGram header, credited to Bush2021 with the year the file was created. Keep the existing tdesktop and Radolyn headers on files that came from upstream. A file written for a PR to AyuGram (sent through the
prremote) usesCopyright @Radolyninstead, like the OpenAI translator files.// This is the source code of AyuGram for Desktop. // // We do not and cannot prevent the use of our code, // but be respectful and credit the original author. // // Copyright @Bush2021, 2026
.github/ISSUE_TEMPLATE/: this fork's own issue forms and support policy. On conflict keep ours whole. Do not fold upstream template changes in.
Editing these in this repo causes recurring merge conflicts. Put fork-specific rules in FORK.md or a skill, not these files:
AGENTS.md,REVIEW.md,.editorconfigTelegram/CMakeLists.txtoutside ayu blocks- All non-forked submodule directories