diff --git a/README.md b/README.md index 81e398c8..0ed2b112 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ This library can be used to easily interact with Telegram **without** the bot AP It can login with a phone number (MTProto API), or with a bot token (MTProto API, **no bot API involved!**). +[It is now fully async](https://docs.madelineproto.xyz/docs/ASYNC.html)! + ## Getting started ```php @@ -50,13 +52,14 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * [Async](https://docs.madelineproto.xyz/docs/ASYNC.html) * [Usage](https://docs.madelineproto.xyz/docs/ASYNC.html#usage) - * [Loading the latest version of MadelineProto](https://docs.madelineproto.xyz/docs/ASYNC.html#loading-the-latest-version-of-madelineproto) - * [Enabling the MadelineProto async API](https://docs.madelineproto.xyz/docs/ASYNC.html#enabling-the-madelineproto-async-api) - * [Using the MadelineProto async API](https://docs.madelineproto.xyz/docs/ASYNC.html#using-the-madelineproto-async-api) - * [Async in event handler](https://docs.madelineproto.xyz/docs/ASYNC.html#async-in-event-handler) - * [Async in callback handler](https://docs.madelineproto.xyz/docs/ASYNC.html#async-in-callback-handler) - * [Wrapped async](https://docs.madelineproto.xyz/docs/ASYNC.html#wrapped-async) - * [Ignored async](https://docs.madelineproto.xyz/docs/ASYNC.html#ignored-async) + * [Loading the latest version of MadelineProto](https://docs.madelineproto.xyz/docs/ASYNC.html#loading-the-latest-version-of-madelineproto) + * [Enabling the MadelineProto async API](https://docs.madelineproto.xyz/docs/ASYNC.html#enabling-the-madelineproto-async-api) + * [Using the MadelineProto async API](https://docs.madelineproto.xyz/docs/ASYNC.html#using-the-madelineproto-async-api) + * [Async in event handler](https://docs.madelineproto.xyz/docs/ASYNC.html#async-in-event-handler) + * [Async in callback handler](https://docs.madelineproto.xyz/docs/ASYNC.html#async-in-callback-handler) + * [Wrapped async](https://docs.madelineproto.xyz/docs/ASYNC.html#wrapped-async) + * [Ignored async](https://docs.madelineproto.xyz/docs/ASYNC.html#ignored-async) + * [Blocking async](https://docs.madelineproto.xyz/docs/ASYNC.html#blocking-async) * [MadelineProto and AMPHP async APIs](https://docs.madelineproto.xyz/docs/ASYNC.html#madelineproto-and-amphp-async-apis) * [Creating a client](https://docs.madelineproto.xyz/docs/CREATING_A_CLIENT.html) * [Logging in](https://docs.madelineproto.xyz/docs/LOGIN.html) diff --git a/docs b/docs index 62a451db..55b64aaf 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 62a451db2f92da8034b7b9535c3c89dd5e0179da +Subproject commit 55b64aaf627fceb0fae839c3008ffae25d53541d diff --git a/src/danog/MadelineProto/DocsBuilder/Methods.php b/src/danog/MadelineProto/DocsBuilder/Methods.php index ad266d35..53d40098 100644 --- a/src/danog/MadelineProto/DocsBuilder/Methods.php +++ b/src/danog/MadelineProto/DocsBuilder/Methods.php @@ -214,7 +214,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png $example = ''; if (!isset($this->settings['td'])) { $example .= '### Can bots use this method: **'.($bot ? 'YES' : 'NO')."**\n\n\n"; - $example .= str_replace('[]', '', '### MadelineProto Example: + $example .= str_replace('[]', '', '### MadelineProto Example ([now async!](https://docs.madelineproto.xyz/docs/ASYNC.html)): ```php