Whitespace cleanups
This commit is contained in:
parent
75194f4552
commit
1cc2ffe19c
26
README.md
26
README.md
@ -13,35 +13,34 @@ Documentation for MTproto protocol is available here: http://core.telegram.org/m
|
|||||||
Clone GitHub Repository
|
Clone GitHub Repository
|
||||||
|
|
||||||
$ git clone https://github.com/vysheng/tg.git && cd tg
|
$ git clone https://github.com/vysheng/tg.git && cd tg
|
||||||
|
|
||||||
or download and extract zip
|
or download and extract zip
|
||||||
|
|
||||||
$ wget https://github.com/vysheng/tg/archive/master.zip -O tg-master.zip
|
$ wget https://github.com/vysheng/tg/archive/master.zip -O tg-master.zip
|
||||||
$ unzip tg-master.zip && cd tg-master
|
$ unzip tg-master.zip && cd tg-master
|
||||||
|
|
||||||
#### Linux
|
#### Linux
|
||||||
|
|
||||||
Install libs: readline openssl and (if you want to use config) libconfig and liblua.
|
Install libs: readline openssl and (if you want to use config) libconfig and liblua.
|
||||||
If you do not want to use them pass options --disable-libconfig and --disable-liblua respectively
|
If you do not want to use them pass options --disable-libconfig and --disable-liblua respectively
|
||||||
On ubuntu use:
|
On ubuntu use:
|
||||||
|
|
||||||
$ sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev
|
$ sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev
|
||||||
On gentoo:
|
On gentoo:
|
||||||
|
|
||||||
$ sudo emerge -av sys-libs/readline dev-libs/libconfig dev-libs/openssl dev-lang/lua
|
|
||||||
|
|
||||||
On Fedora:
|
|
||||||
|
|
||||||
|
$ sudo emerge -av sys-libs/readline dev-libs/libconfig dev-libs/openssl dev-lang/lua
|
||||||
|
|
||||||
|
On Fedora:
|
||||||
|
d
|
||||||
$ sudo yum install lua-devel openssl-devel libconfig-devel readline-devel
|
$ sudo yum install lua-devel openssl-devel libconfig-devel readline-devel
|
||||||
|
|
||||||
Default Makefile uses liblua5.2 from ubuntu. If you use different version of liblua or linux you have to run ./configure script or you will get some strange compilation error.
|
Default Makefile uses liblua5.2 from ubuntu. If you use different version of liblua or Linux you have to run ./configure script or you will get some strange compilation error.
|
||||||
|
|
||||||
Then
|
Then,
|
||||||
|
|
||||||
$ ./configure
|
$ ./configure
|
||||||
$ make
|
$ make
|
||||||
|
|
||||||
|
|
||||||
#### Mac OS X
|
#### Mac OS X
|
||||||
|
|
||||||
The client depends on [readline library](http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html) and [libconfig](http://www.hyperrealm.com/libconfig/), which are not included in OS X by default. You have to install these libraries manually, e.g. using [Homebrew](http://brew.sh/).
|
The client depends on [readline library](http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html) and [libconfig](http://www.hyperrealm.com/libconfig/), which are not included in OS X by default. You have to install these libraries manually, e.g. using [Homebrew](http://brew.sh/).
|
||||||
@ -52,7 +51,7 @@ The client depends on [readline library](http://cnswww.cns.cwru.edu/php/chet/rea
|
|||||||
$ export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/6.2.4/include"
|
$ export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/6.2.4/include"
|
||||||
$ export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/6.2.4/lib"
|
$ export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/6.2.4/lib"
|
||||||
$ ./configure && make
|
$ ./configure && make
|
||||||
|
|
||||||
Thanks to [@jfontan](https://github.com/vysheng/tg/issues/3#issuecomment-28293731) for this solution.
|
Thanks to [@jfontan](https://github.com/vysheng/tg/issues/3#issuecomment-28293731) for this solution.
|
||||||
|
|
||||||
#### FreeBSD
|
#### FreeBSD
|
||||||
@ -67,12 +66,11 @@ Then build:
|
|||||||
|
|
||||||
$ env CC=clang CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib LUA=/usr/local/bin/lua52 LUA_INCLUDE=-I/usr/local/include/lua52 LUA_LIB=-llua-5.2 ./configure
|
$ env CC=clang CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib LUA=/usr/local/bin/lua52 LUA_INCLUDE=-I/usr/local/include/lua52 LUA_LIB=-llua-5.2 ./configure
|
||||||
$ make
|
$ make
|
||||||
|
|
||||||
#### Other UNIX
|
#### Other UNIX
|
||||||
|
|
||||||
If you manage to launch it on other UNIX, please let me know.
|
If you manage to launch it on other UNIX, please let me know.
|
||||||
|
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
./telegram -k <public-server-key>
|
./telegram -k <public-server-key>
|
||||||
@ -94,7 +92,6 @@ If two or more peers have same name, <sharp>number is appended to the name. (for
|
|||||||
|
|
||||||
#### Messaging
|
#### Messaging
|
||||||
|
|
||||||
|
|
||||||
* **msg** \<peer\> Text - sends message to this peer
|
* **msg** \<peer\> Text - sends message to this peer
|
||||||
* **fwd** \<user\> \<msg-seqno\> - forward message to user. You can see message numbers starting client with -N
|
* **fwd** \<user\> \<msg-seqno\> - forward message to user. You can see message numbers starting client with -N
|
||||||
* **chat_with_peer** \<peer\> starts one on one chat session with this peer. /exit or /quit to end this mode.
|
* **chat_with_peer** \<peer\> starts one on one chat session with this peer. /exit or /quit to end this mode.
|
||||||
@ -110,7 +107,6 @@ If two or more peers have same name, <sharp>number is appended to the name. (for
|
|||||||
* **load_photo**/load_video/load_video_thumb \<msg-seqno\> - loads photo/video to download dir
|
* **load_photo**/load_video/load_video_thumb \<msg-seqno\> - loads photo/video to download dir
|
||||||
* **view_photo**/view_video/view_video_thumb \<msg-seqno\> - loads photo/video to download dir and starts system default viewer
|
* **view_photo**/view_video/view_video_thumb \<msg-seqno\> - loads photo/video to download dir and starts system default viewer
|
||||||
|
|
||||||
|
|
||||||
#### Group chat options
|
#### Group chat options
|
||||||
|
|
||||||
* **chat_info** \<chat\> - prints info about chat
|
* **chat_info** \<chat\> - prints info about chat
|
||||||
|
Loading…
Reference in New Issue
Block a user