Telegram API in Other Languages - LonamiWebs/Telethon GitHub Wiki
Telethon was made for Python, and it has inspired other libraries such as gramjs (JavaScript) and grammers (Rust). But there is a lot more beyond those, made independently by different developers.
If you're looking for something like Telethon but in a different programming language, this non-exhaustive list may help you. If you know another maintained library for Telegram or maintain one yourself, feel free to include it below in alphabetical order based on the name of the project.
C
- tgl, and its console client telegram-cli made by @vysheng. Latest development has been moved to BitBucket.
C++
- tdlib, an official library made by Telegram's team. This is what Telegram X uses. You can find more information in tdlib's official documentation.
JavaScript
-
@mtproto/core made by Ali Gasymov, a Telegram API JS (MTProto) client library for Node.js and browser
-
gramjs made by painor, a Telegram client implementation in JavaScript.
-
mtproto-js made by spalt08, created for Telegram JS Contest 2020.
Kotlin
- Kotlogram made by @badoualy, a Telegram implementation written in Kotlin (one of the official languages for Android). Currently as a beta– yet working. Not updated since 2017
- Telekram made by @hackintosh5, is also a Telegram implementation in Kotlin. It's written in Kotlin Multiplatform so can theoretically be ported to JS or any language supporting FFI with not too much effort. API is heavily based on Telethon. Specifically features proper handling of updates, so you will never drop any updates again!
Language-Agnostic
Taas is a service that lets you use Telegram API with any HTTP client via API. Using tdlib under the hood, Taas is a commercial service but allows free access if you use under 12000 requests per month.
PHP
- MadelineProto by @danog, a PHP implementation which includes a very nice online documentation.
Python
- Pyrogram made by @delivrance, written from the ground up in Python and released on December 12, 2017. The actual work on the framework began roughly three months prior to the initial public release on Github.First commit: 05 December 2017 Source
- Telethon made by @Lonami, a project used by the author to learn Python that got a bit out of hands ;) First commit: August 26, 2016
Ruby
- telegram-bot, a simple and easy-to-use library for building Telegram bots in Ruby.
Rust
-
grammers made by the same author as Telethon's! It looks like they just can't stop doing things with Telegram…
-
Vail made by @JuanPotato, an older, work-in-progress Rust implementation.