Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Telegram | 22,655 | 2 days ago | 2 | April 17, 2021 | 511 | gpl-2.0 | Java | |||
Telegram for Android source | ||||||||||
Telethon | 8,188 | 272 | 148 | 4 days ago | 216 | July 24, 2023 | 35 | mit | Python | |
Pure Python 3 MTProto API Telegram client library, for bots too! | ||||||||||
Webogram | 7,827 | 1 | 4 months ago | 2 | May 13, 2021 | 371 | gpl-3.0 | JavaScript | ||
Telegram web application, GPL v3 | ||||||||||
Pyrogram | 3,700 | 29 | 117 | 5 days ago | 261 | January 12, 2023 | 215 | lgpl-3.0 | Python | |
Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots | ||||||||||
Unigram | 3,083 | 15 hours ago | 180 | gpl-3.0 | C# | |||||
Telegram for Windows | ||||||||||
Madelineproto | 2,473 | 29 | 6 | 15 hours ago | 761 | August 21, 2023 | 12 | agpl-3.0 | PHP | |
Async PHP client API for the telegram MTProto protocol | ||||||||||
Telegram React | 1,969 | 1 | 9 months ago | 1 | April 20, 2022 | 201 | gpl-3.0 | JavaScript | ||
Experimental Telegram web client with tdlib, webassembly and react js under the hood | ||||||||||
Mtg | 1,590 | 1 | 7 months ago | 35 | August 09, 2022 | 5 | mit | Go | ||
Highly opinionated MTPROTO proxy for Telegram | ||||||||||
Teamgram Server | 1,441 | 1 | 20 days ago | 24 | July 28, 2023 | apache-2.0 | Go | |||
Unofficial open source mtproto server written in golang with compatible telegram client. | ||||||||||
Mtprotoproxy | 1,365 | 7 months ago | 6 | August 26, 2019 | 95 | mit | Python | |||
Async MTProto proxy for Telegram |
Created by Daniil Gentili
#StandWithUkraine
Do join the official channel, @MadelineProto and the support groups!
This library can be used to easily interact with Telegram without the bot API, just like the official apps.
It can login with a phone number (MTProto API), or with a bot token (MTProto API, no bot API involved!).
<?php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$me = $MadelineProto->getSelf();
$MadelineProto->logger($me);
if (!$me['bot']) {
$MadelineProto->messages->sendMessage(peer: '@stickeroptimizerbot', message: "/start");
$MadelineProto->channels->joinChannel(channel: '@MadelineProto');
try {
$MadelineProto->messages->importChatInvite(hash: 'https://t.me/+Por5orOjwgccnt2w');
} catch (\danog\MadelineProto\RPCErrorException $e) {
$MadelineProto->logger($e);
}
}
$MadelineProto->echo('OK, done!');
Try running this code in a browser or in a console!
Tip: if you receive an error (or nothing), send us the error message and the MadelineProto.log
file that was created in the same directory (if running from a browser).
The following open source projects were created using MadelineProto: you can directly install them, or explore the source code as direct examples on how to use MadelineProto's many features!
simpleBot.php
- Extremely basic exampletgstories_dl_bot.php
- Source code of @tgstories_dl_bot - Bot to download any Telegram Story!downloadRenameBot.php
- Download files by URL and rename Telegram files using this async parallelized bot!secret_bot.php
- Secret chat bot!pipesbot.php
- Creating inline bots and using other inline bots via a userbot!bot.php
- Examples for how to use filters, updates, get download links for any file, Telegram Stories and much more!Want to add your own open-source project to this list? Click here!
$MadelineProto->start()
- The web template used for the $MadelineProto->start() and API ID web UIs can be changed.