Empty string — marks key as a URL protocol handler
shell\open\command\(Default)
REG_SZ
"C:\...\Telegram.exe" -- "%1"
📝 Notes
Telegram Desktop installs to %APPDATA%\Telegram Desktop\ by default (user-scope). All registry entries are written to HKCU only.
All user data (messages are end-to-end encrypted on Telegram's servers; local cache) is in %APPDATA%\Telegram Desktop\tdata\.
The GUID in the uninstall key path may differ per version; use the dynamic lookup: Get-ChildItem "HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall" | Where-Object { $_.GetValue("DisplayName") -like "*Telegram*" }.
The tg:// URI scheme is used for deep links (join group, open user, etc.) from web pages and QR codes.
The portable version (tsetup.zip) creates no registry entries.
🗑️ Cleanup
# Uninstall entry (GUID varies per version)Get-ChildItem"HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall"|Where-Object{$_.GetValue("DisplayName")-like"*Telegram*"}|ForEach-Object{Remove-Item$_.PSPath-Recurse-Force}# URI handlerRemove-Item-Path"HKCR:\tg"-Recurse-Force-ErrorActionSilentlyContinue