Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vysheng/tg
telegram-cli
https://github.com/vysheng/tg
Last synced: about 1 month ago
JSON representation
telegram-cli
- Host: GitHub
- URL: https://github.com/vysheng/tg
- Owner: vysheng
- License: gpl-2.0
- Created: 2013-10-03T12:35:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-27T21:44:13.000Z (6 months ago)
- Last Synced: 2024-02-07T06:11:21.232Z (4 months ago)
- Language: C
- Homepage:
- Size: 4.71 MB
- Stars: 6,222
- Watchers: 298
- Forks: 1,556
- Open Issues: 1,137
-
Metadata Files:
- Readme: README-Cygwin.md
- Changelog: CHANGELOG
- License: LICENSE
Lists
- awesome-stars - tg - cli | vysheng | 5766 | (C)
- cli-apps - Telegram messenger CLI - Command-line interface for Telegram using the readline interface. (<a name="chat"></a>Chat and instant messaging)
- awesome-stars-wjf0214 - vysheng/tg - telegram-cli (C)
- awesome-stars - vysheng/tg - telegram-cli (C)
- my-awesome - vysheng/tg - telegram-cli (C)
- awesome-stars - tg - cli | vysheng | 5432 | (C)
- awesome-stars - vysheng/tg - telegram-cli (C)
- awesome - tg - telegram-cli (C)
- awesome-stars - vysheng/tg - telegram-cli (C)
- awesome-macos-commandline - tg - Command Line Telegram. (Uncategorized / Uncategorized)
- awesome-stars - vysheng/tg - telegram-cli (C)
- awesome-stars - vysheng/tg - telegram-cli (C)
- awesome - vysheng/tg - telegram-cli (C)
- awesome-stars - vysheng/tg - telegram-cli (C)
- awesome-stars - tg - cli | vysheng | 6344 | (C)
- awesome-telegram - telegram-cli - C with Lua and Python support (MTProto implementations / Community)
- awesome-stars - vysheng/tg - telegram-cli (C)
- awesome-stars - tg - cli | vysheng | 4935 | (C)
- Awesome - Telegram-CLI - Command-line interface for Telegram. (Communication and Collaboration Tools)
- awesome-stars - tg - cli | vysheng | 6341 | (C)
- my-awesome-stars - vysheng/tg - telegram-cli (C)
- awesome-stars - vysheng/tg - `★6344` telegram-cli (C)
- awesome-telegram - telegram-cli - `C` with Lua and Python support (MTProto implementations / Community)
- awesome-starred - tg - cli | vysheng | 6333 | (C)
- awesome-cli-apps - Telegram messenger CLI - Command-line interface for Telegram using the readline interface. (<a name="chat"></a>Chat and instant messaging)
README
### Installation on Windows
To use telegram-cli in Windows, you should compile with Cygwin which has POSIX API functionality.Install [Cygwin](https://www.cygwin.com/) and cygwin's package manager, [apt-cyg](https://github.com/transcode-open/apt-cyg).
In Cygwin Terminal, install compiler and tools :
apt-cyg install cygwin32-gcc-core cygwin32-gcc-g++ gcc-core gcc-g++ make wget patch diffutils grep tar gzip
Now you have a compiler, but no libraries. You need readline, openssl, libconfig, liblua, python and libjansson to use telegram-cli's full functionality.
Then Clone GitHub Repository in Cygwin Terminal
git clone --recursive https://github.com/vysheng/tg.git
In Cygwin Terminal, type:
apt-cyg install libevent-devel openssl-devel libreadline-devel lua-devel python3
(Install package 'python' to use Python 2.7, or install package 'python3' to use Python 3)libconfig and libjansson is not in cygwin's package, so you should compile yourself.
Compile libconfig
wget http://www.hyperrealm.com/libconfig/libconfig-1.5.tar.gz
tar xvf libconfig-1.5.tar.gz && cd libconfig-1.5
./configure
make && make install && cd ..Compile libjansson
wget http://www.digip.org/jansson/releases/jansson-2.7.tar.gz
tar xvf jansson-2.7.tar.gz && cd jansson-2.7
./configure
make && make install && cd ..Then, go to tg directory then generate Makefile.
cd tg
./configure
We need to patch Makefile and loop.c to compile in cygwin. Download this [patch](https://gist.github.com/ied206/d774a445f36004d263ab) then untar. Then, patch in tg directory.patch -p1 < telegram-cli-cygwin.patch
Then
makeAfter compile is done, **telegram-cli.exe** will be generated in **bin** directory.
To run telegram-cli, type
bin/telegram-cli -k tg-server.pub**Caution**: A binary compiled with Cygwin should be run in Cygwin Terminal.