overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
4.92k stars 818 forks source link

Disable automatic check for updates #206

Open xinatanil opened 5 years ago

xinatanil commented 5 years ago

If you install Telegram for macOS via .dmg (not via Mac App Store), then you will frequently get those dialogs with "New version of Telegram is available, would you like to install it, etc". The problem is that minor releases of Telegram are being released on a very frequent basis, so this update pop up appears almost every day for me.

Pressing "Skip Update" works fine, but new releases come very often, and there's no way to disable automatic app update in the settings, so this pop up became INCREDIBLY annoying for me.

Please, add an option to disable app updates completely.

ghost commented 5 years ago

That's why I'm still using an old version. A new version has a huge issue with the updater

Zipfer commented 3 years ago

Is it possible to disable the update, because it downloads the updates in the background and spends the internet tethering traffic? Moreover, it redownloads the update each time telegram restarted

Tom5om commented 2 years ago

I agree, give us the option to not install updates. I am travelling so essentially always on my 4g data. There should be a checkbox to disable this

FerryA1 commented 1 year ago

Agreed, the option should be in Preferences.

For example, using Telegram in an old machine (macOS 10.11 "El Capitan", cannot be upgraded, does not accept newer OS versions), and last update (9.0 STABLE) does not work on it, keeps crashing at start, logging out and back in as suggested does not work. Only reinstalling the old version (8.8 STABLE, fortunately I keep it stored) makes it work again, but it keeps DL'ing update and popping up a button to "Update" in the middle of the channel list, lower side, not too difficult to click it inadvertently, so a "Don't check for updates" option would be nice.

dinaau commented 1 year ago

Agreed, the option should be in Preferences.

For example, using Telegram in an old machine (macOS 10.11 "El Capitan", cannot be upgraded, does not accept newer OS versions), and last update (9.0 STABLE) does not work on it, keeps crashing at start, logging out and back in as suggested does not work. Only reinstalling the old version (8.8 STABLE, fortunately I keep it stored) makes it work again, but it keeps DL'ing update and popping up a button to "Update" in the middle of the channel list, lower side, not too difficult to click it inadvertently, so a "Don't check for updates" option would be nice.

I have the same verion of the macOS and same issue with the 9.0 Stable

anyway we can modifty the local code to prevent it check the updates?

dinaau commented 1 year ago

can anyone wireshark the update url link on the macOS ? once we have the url link then we can block it

dinaau commented 1 year ago

found the answer myself go to users/urname/Library/Caches/ru.keepcoder.Telegram/org.sparkle-project.sparkle

make the folder "PersistentDownloads" read only and lock

1111Al commented 1 year ago

found the answer myself go to users/urname/Library/Caches/ru.keepcoder.Telegram/org.sparkle-project.sparkle

make the folder "PersistentDownloads" read only and lock

It doesn't wotk, that is the permission for users not for apps. Anyway, after i set that folder on read only, after a while I found that folder permission was reverse to read and write permission, and the usual two auto update files had been downloaded in there.

Un1Gfn commented 7 months ago

:warning: eat with caution

cd ~/Library/Caches/ru.keepcoder.Telegram/org.sparkle-project.Sparkle/
sudo mv PersistentDownloads PersistentDownloads.bak
sudo install -d -g wheel -m 700 -o root PersistentDownloads
jiangtann commented 5 months ago

⚠️ eat with caution

cd ~/Library/Caches/ru.keepcoder.Telegram/org.sparkle-project.Sparkle/
sudo mv PersistentDownloads PersistentDownloads.bak
sudo install -d -g wheel -m 700 -o root PersistentDownloads

Every time I reopen Telegram, it automatically starts downloading update data. Although it ultimately results in the message "Can't make a temporary directory for the update download at (null)" and annoying "Update Telegram" button disappears, it still consumes my network traffic. Is there a way to prevent Telegram from automatically downloading these updates?

AndreyGubin commented 5 months ago

Is there a way to prevent Telegram from automatically downloading these updates?

There is no way to prevent updates due stupid Sparkle framework. It uses telegram servers to download updates so I can't block it with hosts or brandmauer. I'm thinking to use different telegram client because of consuming traffic for useless updates

d4rky-pl commented 1 month ago

Considering that important bugs are not being fixed (#840, #1110), this is a must

1111Al commented 1 month ago

The only working solution is to install Telegram app from Apple store, disabling automatic updates in the Apple Store preferences.

sidneys commented 1 month ago

The only working solution is to install Telegram app from Apple store, disabling automatic updates in the Apple Store preferences.

The command line solution works:

https://github.com/overtake/TelegramSwift/issues/206#issuecomment-1845533312

1111Al commented 1 month ago

The only working solution is to install Telegram app from Apple store, disabling automatic updates in the Apple Store preferences.

The command line solution works:

#206 (comment)

I didn't try it 'cause long ago I solved with a Keyboard Maestro macro, that did the same as the command line. Then I forgot this thread, but now with App Store version the problem is finally gone.

IfSheDiesSheDies commented 1 week ago

This button harasses me, I dont care to reopen apps every 5 seconds