Skip to content

Precompiled Telegram Command Line binaries for MacOS.

Notifications You must be signed in to change notification settings

monomadic/telegram-cli-mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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

About

Precompiled Telegram Command Line binaries for MacOS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages