Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo " Iniciando Instalacao "
- echo "
- [ ] Instalando Bibliotecas"
- apt-get install git libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev make build-essential -y > /dev/nul
- echo "
- [OK] Instalado"
- sleep 1
- cd /tmp/
- echo "
- [ ] Cloando Diretorio"
- git clone --recursive https://github.com/vysheng/tg.git > /dev/nul
- echo "
- [OK] Feito "
- cd tg
- echo "
- [ ] Configurar "
- ./configure
- make
- clear
- echo "
- [OK] Configurado"
- echo " Instalando Telegram "
- echo "
- [ ] Instalando.."
- mkdir /opt/telegram
- cp bin/telegram-cli /opt/telegram
- cp tg-server.pub /opt/telegram
- cd /opt/telegram
- wget pastebin.com/raw/SUTsRbZ9 -O /opt/telegram/telegram.config
- dos2unix /opt/telegram/telegram.config
- wget pastebin.com/raw/tTSAJ3ye -O /opt/telegram/telegram-cmd
- dos2unix /opt/telegram/telegram-cmd
- chmod 777 /opt/telegram/telegram-cmd
- ln -s /opt/telegram/telegram-cmd /usr/bin/telegram-cmd
- echo "
- [OK] Instalado "
- echo " Configure com seu numero de telefone "
- ./telegram-cli --rsa-key tg-server.pub --config telegram.config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement