cli icon indicating copy to clipboard operation
cli copied to clipboard

`treehouses message telegram sendto` (fixes #1805)

Open warthog16 opened this issue 5 years ago • 1 comments

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/.

warthog16 avatar Aug 24 '20 17:08 warthog16

  • be sure to use >/dev/null 2>&1 to 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

darthnoward avatar Aug 26 '20 03:08 darthnoward