https://github.com/layerex/telegram-desktop-patches
Patches disabling some anti-features of Telegram Desktop: sponsored messages, saving restrictions and other.
https://github.com/layerex/telegram-desktop-patches
tdesktop telegram-desktop
Last synced: 11 months ago
JSON representation
Patches disabling some anti-features of Telegram Desktop: sponsored messages, saving restrictions and other.
- Host: GitHub
- URL: https://github.com/layerex/telegram-desktop-patches
- Owner: Layerex
- License: gpl-3.0
- Created: 2023-04-01T14:44:16.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-10T21:01:30.000Z (over 1 year ago)
- Last Synced: 2025-09-03T02:03:26.151Z (11 months ago)
- Topics: tdesktop, telegram-desktop
- Language: Shell
- Homepage:
- Size: 85.9 KB
- Stars: 58
- Watchers: 2
- Forks: 16
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# telegram-desktop-patches
Patches disabling some anti-features of [Telegram Desktop](https://desktop.telegram.org/).
## Installation
Building requires ⪝48 GB of RAM. Use zram, if you are lacking.
### Arch Linux
```sh
makepkg -si
```
Or if you want to regenerate `PKGBUILD` for current patches in the directory (don't use spaces in patch filenames):
``` sh
make
```
You may also install a prebuilt package published in releases.
### Nix
May be unmaintained.
- [Overrides](https://github.com/Layerex/telegram-desktop-patches/issues/4#issue-2124576494)
- [Flake](https://github.com/shwewo/telegram-desktop-patched)
**TODO:** generate overrides and flake automatically.
### Other systems
Download source code of Telegram Desktop and run commands from `prepare()`, `build()` and `package()` in `PKGBUILD` manually.
## Patches
### 0001-Disable-sponsored-messages.patch
### 0002-Disable-saving-restrictions.patch
Enables saving media, selecting and copying messages in channels, which disallow doing so.
### 0003-Disable-invite-peeking-restrictions.patch
Disables restrictions for viewing and exporting private chats and channels you didn't join but are able to view.
### 0004-Disable-accounts-limit.patch
### 0005-Option-to-disable-stories.patch
Toggle is in experimental settings.
## Contributing
Feel free to contibute patches and means of packaging and installation.
## Updating
If you want to update `PKGBUILD`, make changes in `PKGBUILD.m4` instead and generate `PKGBUILD` with `make`.
See `PKGBUILD.m4` for update instructions.
## See also
[Killergram](https://github.com/shatyuka/Killergram) - Xposed module featuring some patches with similar functionality for Telegram for Android.
## Credits
[telegram-desktop-no-ads-pkgbuild](https://github.com/vehlwn/telegram-desktop-no-ads-pkgbuild)