cli
cli copied to clipboard
`treehouses message telegram sendto` (fixes #1805)
fixes #1805
To install telegram-cli, run:
apt install libreadline-dev libconfig-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libssl1.0-dev libgcrypt20-dev
git clone https://github.com/vysheng/tg --recursive
cd tg
sed -i '107d' ./tgl/mtproto-utils.c
sed -i '101d' ./tgl/mtproto-utils.c
sed -i "s/\-rdynamic //" Makefile.in
sed -i "s/\-fPIC//" Makefile.in
sed -i "s/\-Werror //" Makefile.in
./configure
make
cp ./bin/telegram-cli /usr/local/bin/.
- be sure to use
>/dev/null 2>&1to supress output from telegram-cli - be sure to add login option. If the user has already logged in, there will be a hidden directory under home directory, check for that.
- try this image with telegram-cli pre-installed