wget -O- https://telegram.org/dl/desktop/linux | sudo tar xJ -C /opt/
sudo ln -s /opt/Telegram/Telegram /usr/local/bin/telegram-desktop
wget https://telegram.org/img/t_logo.png -O /usr/share/pixmaps/telegram.png
Create /usr/share/applications/telegram.desktop
file with the following contents:
[Desktop Entry]
Name=Telegram
StartupWMClass=Telegram
Comment=Telegram Desktop
GenericName=Telegram Client for Linux
Exec=/usr/local/bin/telegram-desktop -- %u
Icon=/usr/share/pixmaps/telegram.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Network;InstantMessaging;
MimeType=application/x-xdg-protocol-tg;x-scheme-handler/tg;