telegram使用的便携版或系统重装之后,在浏览器中点击相关的链接无法唤起TG应用。使用下面的注册表导入即可恢复
注意需要将注册表中的路径修改为实际的路径
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\tdesktop.tg] [HKEY_CLASSES_ROOT\tdesktop.tg\DefaultIcon] @="\"D:\\soft\\Telegram Desktop\\Telegram.exe,1\"" [HKEY_CLASSES_ROOT\tdesktop.tg\shell] [HKEY_CLASSES_ROOT\tdesktop.tg\shell\open] [HKEY_CLASSES_ROOT\tdesktop.tg\shell\open\command] @="\"D:\\soft\\Telegram Desktop\\Telegram.exe\" -workdir \"D:/soft/Telegram Desktop/\" -- \"%1\"" [HKEY_CURRENT_USER\SOFTWARE\Classes\tdesktop.tg] [HKEY_CURRENT_USER\SOFTWARE\Classes\tdesktop.tg\DefaultIcon] @="\"D:\\soft\\Telegram Desktop\\Telegram.exe,1\"" [HKEY_CURRENT_USER\SOFTWARE\Classes\tdesktop.tg\shell] [HKEY_CURRENT_USER\SOFTWARE\Classes\tdesktop.tg\shell\open] [HKEY_CURRENT_USER\SOFTWARE\Classes\tdesktop.tg\shell\open\command] @="\"D:\\soft\\Telegram Desktop\\Telegram.exe\" -workdir \"D:/soft/Telegram Desktop/\" -- \"%1\"" [HKEY_CLASSES_ROOT\tg] "URL Protocol"="" @="URL:Telegram Link" [HKEY_CLASSES_ROOT\tg\DefaultIcon] @="\"D:\\soft\\Telegram Desktop\\Telegram.exe,1\"" [HKEY_CLASSES_ROOT\tg\shell] [HKEY_CLASSES_ROOT\tg\shell\open] [HKEY_CLASSES_ROOT\tg\shell\open\command] @="\"D:\\soft\\Telegram Desktop\\Telegram.exe\" -workdir \"D:/soft/Telegram Desktop/\" -- \"%1\"" [HKEY_CURRENT_USER\SOFTWARE\Classes\tg] "URL Protocol"="" @="URL:Telegram Link" [HKEY_CURRENT_USER\SOFTWARE\Classes\tg\DefaultIcon] @="\"D:\\soft\\Telegram Desktop\\Telegram.exe,1\"" [HKEY_CURRENT_USER\SOFTWARE\Classes\tg\shell] [HKEY_CURRENT_USER\SOFTWARE\Classes\tg\shell\open] [HKEY_CURRENT_USER\SOFTWARE\Classes\tg\shell\open\command] @="\"D:\\soft\\Telegram Desktop\\Telegram.exe\" -workdir \"D:/soft/Telegram Desktop/\" -- \"%1\"" [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] "telegram"="D:\\soft\\Telegram Desktop\\Telegram.exe -autostart"