TGViewer
PWRTelegram API canale italiano PWRTelegram API canale italiano @pwrtelegramita · 43 subscribers
Post #85 94

Forwarded from MadelineProto | Official Channel (Daniil Gentili)

Instantiation

use danog\MadelineProto\TON\API;

$API = new API(
[
'logger' => [
'logger' => Logger::ECHO_LOGGER
]
]
);


Usage:

$API->async(true);
$API->loop(
function () use ($API) {
yield $API->connect(__DIR__.'/ton-lite-client-test1.config.json');
var_dump(yield $API->liteServer->getTime());
}
);


For a full overview of async in MadelineProtoTon, take a look at the MadelineProto async docs.

For a full list of methods that can be used, simply look at the PHPDOC suggestions in your favorite IDE, or take a look at the ---functions--- section of the lite TL scheme (HTML docs coming soon).

This API can be used to build web-facing HTTP APIs that query the TON blockchain (using the async http-server), off-chain elements for TON applications and so much more!

Since it's in PHP & integrated in MadelineProto, you can also use it in free webhosts (aka use the blockchain on 000webhost AAAAAAAAA ❤️❤️❤️❤️❤️)
docs.madelineproto.xyz Async MadelineProto now features async, for incredible speed improvements, and parallel processing, all powered by amphp.
More from @pwrtelegramita
  1. Apr 27, 2024MadelineProto was updated! 8.0.0 is the first stable release of MadelineProto v8! For the…
  2. Aug 29, 2023PWRTelegram API canale italiano pinned «I'm very happy to announce the first release of ht…
  3. Aug 29, 2023I'm very happy to announce the first release of https://github.com/danog/php-tokio: you ca…
  4. Aug 14, 2023As a birthday present for Telegram's 🥳th birthday, MadelineProto now supports VoIP calls…
  5. Jul 22, 2023This userbot is powered by MadelineProto!
  6. Jul 21, 2023You can now download any Telegram Story using @tgstories_dl_bot! Just send it a /dlStory @…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →