This is library that handles Telegram API and protocol.
This is a fork of vysheng's repository.
If you're looking for client CLI implementation, check TG repository instead.
Build status:
Repository | Status |
---|---|
vysheng (main) | |
kenorb-contrib |
Current versions:
scheme.tl
: Layer 38encrypted_scheme.tl
: Layer 23
Documentation for Telegram API is available here: https://core.telegram.org/api
Documentation for MTproto protocol is available here: https://core.telegram.org/mtproto
Clone this GitHub repository with --recursive
parameter to clone submodules.
git clone --recursive https://github.com/CHANGETHIS/tgl.git && cd tgl
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
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
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