2018-01-05 02:59:53 +03:00
|
|
|
|
===============================
|
|
|
|
|
Telegram API in Other Languages
|
|
|
|
|
===============================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Telethon was made for **Python**, and as far as I know, there is no
|
|
|
|
|
*exact* port to other languages. However, there *are* other
|
|
|
|
|
implementations made by awesome people (one needs to be awesome to
|
|
|
|
|
understand the official Telegram documentation) on several languages
|
|
|
|
|
(even more Python too), listed below:
|
|
|
|
|
|
|
|
|
|
C
|
|
|
|
|
*
|
|
|
|
|
|
|
|
|
|
Possibly the most well-known unofficial open source implementation out
|
2018-01-06 15:37:46 +03:00
|
|
|
|
there by `@vysheng <https://github.com/vysheng>`__,
|
|
|
|
|
`tgl <https://github.com/vysheng/tgl>`__, and its console client
|
|
|
|
|
`telegram-cli <https://github.com/vysheng/tg>`__. Latest development
|
2018-01-05 02:59:53 +03:00
|
|
|
|
has been moved to `BitBucket <https://bitbucket.org/vysheng/tdcli>`__.
|
|
|
|
|
|
2018-03-01 15:21:28 +03:00
|
|
|
|
C++
|
2019-05-09 13:24:37 +03:00
|
|
|
|
===
|
2018-03-01 15:21:28 +03:00
|
|
|
|
|
|
|
|
|
The newest (and official) library, written from scratch, is called
|
|
|
|
|
`tdlib <https://github.com/tdlib/td>`__ and is what the Telegram X
|
|
|
|
|
uses. You can find more information in the official documentation,
|
|
|
|
|
published `here <https://core.telegram.org/tdlib/docs/>`__.
|
|
|
|
|
|
2018-01-05 02:59:53 +03:00
|
|
|
|
JavaScript
|
2019-05-09 13:24:37 +03:00
|
|
|
|
==========
|
2018-01-05 02:59:53 +03:00
|
|
|
|
|
2018-01-06 15:37:46 +03:00
|
|
|
|
`@zerobias <https://github.com/zerobias>`__ is working on
|
|
|
|
|
`telegram-mtproto <https://github.com/zerobias/telegram-mtproto>`__,
|
2018-01-05 02:59:53 +03:00
|
|
|
|
a work-in-progress JavaScript library installable via
|
2018-01-06 15:37:46 +03:00
|
|
|
|
`npm <https://www.npmjs.com/>`__.
|
2018-01-05 02:59:53 +03:00
|
|
|
|
|
|
|
|
|
Kotlin
|
2019-05-09 13:24:37 +03:00
|
|
|
|
======
|
2018-01-05 02:59:53 +03:00
|
|
|
|
|
|
|
|
|
`Kotlogram <https://github.com/badoualy/kotlogram>`__ is a Telegram
|
2018-03-17 19:07:56 +03:00
|
|
|
|
implementation written in Kotlin (one of the
|
2018-01-05 02:59:53 +03:00
|
|
|
|
`official <https://blog.jetbrains.com/kotlin/2017/05/kotlin-on-android-now-official/>`__
|
2018-03-17 19:07:56 +03:00
|
|
|
|
languages for
|
2018-01-05 02:59:53 +03:00
|
|
|
|
`Android <https://developer.android.com/kotlin/index.html>`__) by
|
2018-01-06 15:37:46 +03:00
|
|
|
|
`@badoualy <https://github.com/badoualy>`__, currently as a beta–
|
2018-01-05 02:59:53 +03:00
|
|
|
|
yet working.
|
|
|
|
|
|
|
|
|
|
PHP
|
2019-05-09 13:24:37 +03:00
|
|
|
|
===
|
2018-01-05 02:59:53 +03:00
|
|
|
|
|
|
|
|
|
A PHP implementation is also available thanks to
|
2018-01-06 15:37:46 +03:00
|
|
|
|
`@danog <https://github.com/danog>`__ and his
|
2018-01-05 02:59:53 +03:00
|
|
|
|
`MadelineProto <https://github.com/danog/MadelineProto>`__ project, with
|
|
|
|
|
a very nice `online
|
|
|
|
|
documentation <https://daniil.it/MadelineProto/API_docs/>`__ too.
|
|
|
|
|
|
|
|
|
|
Python
|
2019-05-09 13:24:37 +03:00
|
|
|
|
======
|
2018-01-05 02:59:53 +03:00
|
|
|
|
|
|
|
|
|
A fairly new (as of the end of 2017) Telegram library written from the
|
|
|
|
|
ground up in Python by
|
2018-01-06 15:37:46 +03:00
|
|
|
|
`@delivrance <https://github.com/delivrance>`__ and his
|
2018-03-01 15:21:28 +03:00
|
|
|
|
`Pyrogram <https://github.com/pyrogram/pyrogram>`__ library.
|
|
|
|
|
There isn't really a reason to pick it over Telethon and it'd be kinda
|
|
|
|
|
sad to see you go, but it would be nice to know what you miss from each
|
|
|
|
|
other library in either one so both can improve.
|
2018-01-05 02:59:53 +03:00
|
|
|
|
|
|
|
|
|
Rust
|
2019-05-09 13:24:37 +03:00
|
|
|
|
====
|
2018-01-05 02:59:53 +03:00
|
|
|
|
|
|
|
|
|
Yet another work-in-progress implementation, this time for Rust thanks
|
2018-01-06 15:37:46 +03:00
|
|
|
|
to `@JuanPotato <https://github.com/JuanPotato>`__ under the fancy
|
2018-03-01 15:21:28 +03:00
|
|
|
|
name of `Vail <https://github.com/JuanPotato/Vail>`__.
|