Code Monkey home page Code Monkey logo

tgl's Introduction

Telegram library

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) Build Status
kenorb-contrib Build Status

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 this GitHub repository with --recursive parameter to clone submodules.

 git clone --recursive https://github.com/CHANGETHIS/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

tgl's People

Contributors

almamu avatar avsej avatar benwiederhake avatar blaize9 avatar c-elegans avatar capacitorset avatar carpikes avatar efidler avatar eionrobb avatar giuseppem99 avatar gokceneraslan avatar goty avatar gurelkaynak avatar hedayat avatar igor04 avatar kenorb avatar lkraider avatar lucentw avatar majn avatar oleg78 avatar panzi avatar s-londono avatar schroedingerszombie avatar smlu avatar srazi avatar steils avatar ultimatesolution avatar vysheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tgl's Issues

tgl/queries.c:470: tglq_query_result: Assertion `0' failed

$ telegram-cli -D
 *** 1554554018.940353 Skipped 8292 int out of 62378 (type updates.Difference) (query type get difference)
 *** 1554554018.940387 0x00000000 0xa8fb1981 0x1cb5c415 0x000000e3
> telegram-cli: tgl/queries.c:470: tglq_query_result: Assertion `0' failed.
SIGNAL received
h/snap/telegram-cli/25/bin/telegram-cli(print_backtrace+0x2f)[0x46ef1f]
/snap/telegram-cli/25/bin/telegram-cli(termination_signal_handler+0x64)[0x46efb4]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7fc70cbb64b0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7fc70cbb6428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7fc70cbb802a]
/lib/x86_64-linux-gnu/libc.so.6(+0x2dbd7)[0x7fc70cbaebd7]
/lib/x86_64-linux-gnu/libc.so.6(+0x2dc82)[0x7fc70cbaec82]
/snap/telegram-cli/25/bin/telegram-cli(tglq_query_result+0x44c)[0x498b5c]
/snap/telegram-cli/25/bin/telegram-cli[0x49157f]
/snap/telegram-cli/25/bin/telegram-cli[0x4b5d5b]
/snap/telegram-cli/25/usr/lib/x86_64-linux-gnu/libevent-2.0.so.5(event_base_loop+0x819)[0x7fc70e0654c9]
/snap/telegram-cli/25/bin/telegram-cli(net_loop+0xa7)[0x470557]
/snap/telegram-cli/25/bin/telegram-cli(loop+0x183)[0x4718c3]
/snap/telegram-cli/25/bin/telegram-cli(main+0x2e5)[0x46d745]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fc70cba1830]
/snap/telegram-cli/25/bin/telegram-cli(_start+0x29)[0x46d859]

New release

Hi, I'm trying to package this repo for voild linux.
They don't allow git packages, so I would like to have a release that i can use.
The current release doesn't contain the tl_parser subdir, so it wont compile.
It's also very old.
Could you make another release please?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.