sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev lua-socket lua-sec lua-expat libevent-dev make unzip git redis-server autoconf g++ libjansson-dev libpython-dev expat libexpat1-dev
cd $HOME
git clone https://github.com/smartaccs/newtg.git
cd newtg
wget https://valtman.name/files/telegram-cli-1124
mv telegram-cli-1124 tg
chmod +x tg
./tg #Enter a phone number & confirmation code.
#close terminal
./tg -s bot.lua #run
Open ./bot.lua and add your ID to the "sudo_users" section in the following format:
sudo_users = {
[272970544] = '[Ee][Rr][Oo][Rr][Rr]_[Yy][Ee][Ss]',
}