Compiling the Telegram client "telegram-cli" in the jail
# apt-get update
# apt-get install install gcc libc6-dev# apt-get install git
# apt-get install libreadline-dev libconfig-dev libssl-dev
# apt-get install lua5.2 liblua5.2-dev libevent-dev libjansson-dev make
$ git clone --recursive https://github.com/vysheng/tg.git
$ cd tg
$ ./configure --disable-python
...
$ sudo mkdir /etc/telegram-cli
$ sudo cp server.pub /etc/telegram-cli
$ cp telegram-cli ..$ ~/telegram-cli
Telegram-cli version 1.3.3, Copyright (C) 2013-2015 Vitaly Valtman
Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show_license' for details.
Telegram-cli uses libtgl version 2.0.3
Telegram-cli includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit. (http://www.openssl.org/)
I: config dir=[/home/phablet/.telegram-cli]
> contact_list
Emil Apitz
...Last updated