Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 920 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 920 Bytes

Telegram-CLI Binaries

Precompiled Telegram binaries for MacOS, tested on Sierra.

It's really tricky to get this stupid thing compiled on MacOS (the source is ultra messy and poorly written C - maybe somebody needs to write a rust version?). If trust is a heavy issue for you, maybe go the long route, but here's how I compiled them:

git clone --recursive https://github.com/vysheng/tg.git && cd tg
brew install libconfig readline lua python libevent jansson openssl
export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/6.3.8/include -I/usr/local/opt/openssl/include"
export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/6.3.8/lib -L/usr/local/opt/openssl/lib"

I then changed lua-tg.c and commented the following lines (664-666):

static inline tgl_peer_t *get_peer (const char *s) { 
  return tgl_peer_get_by_name (TLS, s);
}

Compiled with:

./configure && make