Skip to content

Instantly share code, notes, and snippets.

@SAVE-UP
Created August 15, 2020 12:00
Show Gist options
  • Save SAVE-UP/a65fb0d170560fc04ac04b23607ac4be to your computer and use it in GitHub Desktop.
Save SAVE-UP/a65fb0d170560fc04ac04b23607ac4be to your computer and use it in GitHub Desktop.
Install Telegram on Ubuntu
#!/bin/sh
{
echo "This script requires superuser access to install apt packages."
echo "You will be prompted for your password by sudo."
# clear any previous sudo permission
sudo -k
# run inside sudo
sudo sh <<SCRIPT
# add PPA atareao/telegram
sudo add-apt-repository ppa:atareao/telegram
# update your sources
apt-get update
# install telegram
apt-get install -y telegram
# install telegram if needed
# if ! type telegram >/opt/telegram/null 2>&1; then
apt-get install -y telegram
# fi
SCRIPT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment