2017 © Pedro Pelรกez
 

project madelineproto

image

danog/madelineproto

  • Sunday, July 29, 2018
  • by danog
  • Repository
  • 51 Watchers
  • 563 Stars
  • 12,124 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 154 Forks
  • 13 Open issues
  • 23 Versions
  • 25 % Grown

The README.md

MadelineProto, a PHP MTProto telegram client

Created by Daniil Gentili, (*1)

#StandWithUkraine ๐Ÿ‡บ๐Ÿ‡ฆ, (*2)

Do join the official channel, @MadelineProto and the support groups!, (*3)

Approved by Telegram!, (*4)

What's this?

This library can be used to easily interact with Telegram without the bot API, just like the official apps., (*5)

It can login with a phone number (MTProto API), or with a bot token (MTProto API, no bot API involved!)., (*6)

It is now fully async!, (*7)

Getting started (now fully async!)

<?php

// PHP 8.2+ is required.

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!, (*8)

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)., (*9)

Made with MadelineProto

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!, (*10)

  • magnaluna webradio - Multifeatured Telegram VoIP webradio
  • simpleBot.php - Extremely basic example
  • tgstories_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!
  • TelegramApiServer - Fast, simple, async php telegram api server: an HTTP JSON API for MadelineProto (for use in languages other than PHP, if using PHP use directly MadelineProto)

Want to add your own open-source project to this list? Click here!, (*11)

Some of MadelineProto's core components are also available as separate, standalone libraries:, (*12)

Documentation

The Versions

29/07 2018

dev-webAPI

dev-webAPI

  Sources   Download

19/07 2018

dev-master

9999999-dev https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0 AGPLv3 AGPL-3.0-only

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

13/07 2018

3.1

3.1.0.0 https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0-only

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

08/05 2018

3.0

3.0.0.0 https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0-only

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

04/04 2018

dev-voip

dev-voip https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0-only

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

20/03 2018

dev-documentation-rework

dev-documentation-rework https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0-only

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

08/03 2018

dev-beta

dev-beta https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0-only

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

02/03 2018

dev-logging

dev-logging https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0-only

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

13/01 2018

dev-http

dev-http https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

01/10 2017

dev-localization

dev-localization https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

23/08 2017

dev-nothreading

dev-nothreading https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

21/08 2017

dev-threading

dev-threading https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0 AGPLv3

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

07/08 2017

dev-add-code-of-conduct-1

dev-add-code-of-conduct-1 https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

24/07 2017

2.0

2.0.0.0 https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

19/06 2017

1.4

1.4.0.0 https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

29/05 2017

1.3.1

1.3.1.0 https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPL-3.0

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

19/05 2017

1.3

1.3.0.0 https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPLv3

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

05/04 2017

1.2

1.2.0.0 https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPLv3

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

05/02 2017

1.0.1

1.0.1.0 https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPLv3

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

05/02 2017

1.0

1.0.0.0 https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPLv3

The Requires

 

The Development Requires

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

01/01 2017

1.0-rc

1.0.0.0-RC https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPLv3

The Requires

 

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

25/11 2016

1.0-beta.1

1.0.0.0-beta1 https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

AGPLv3

The Requires

 

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb

25/11 2016

v1.0-beta

1.0.0.0-beta https://daniil.it/MadelineProto

PHP implementation of telegram's MTProto protocol.

  Sources   Download

MIT

The Requires

 

by Daniil Gentili

php files client audio video telegram protocol messenger bytes mtproto stickers gb