Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md - github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: edcd8cfb52e9998663e2d49ed2c8003ef57fd800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
This is library that handles telegram api and protocol.

Current versions:

- scheme.tl: Layer 38
- encrypted_scheme.tl: Layer 23

### API, Protocol documentation

Documentation for Telegram API is available here: https://core.telegram.org/api

Documentation for MTproto protocol is available here: https://core.telegram.org/mtproto

### Installation

Clone GitHub Repository

     git clone --recursive  https://github.com/vysheng/tgl.git && cd tgl

#### Linux and BSDs

Install libs: openssl, zlib
if you want to use provided net/timers then install libevent and add --enable-libevent key to configure

You can also avoid the OpenSSL dependency: Install gcrypt (>= 1.60, Debian derivates know it as "libgcrypt20-dev"), and add --disable-openssl key to configure

Then,

     ./configure
     make

#### Android
Install libs: openssl, openssl(android), zlib
if you want to use provided net/timers then install libevent and add --enable-libevent key to configure

Then,

     export ANDROID_NDK=<Path_to_Android_NDK>
     export OPENSSL_ROOT=<Path_to_Android_version_of_OpenSSL_root_dir>
     ./configure
     make -f Makefile.android


### Contacts 
If you would like to ask a question, you can write to my telegram or to the github (or both). To contact me via telegram, you should use import_card method with argument 000653bf:0738ca5d:5521fbac:29246815:a27d0cda