From 86cec7f6539be76b36c0e7f23398212bb70e919e Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 30 Dec 2019 20:39:58 +0100 Subject: [PATCH] update --- docs/docs/ASYNC.md | 2 +- docs/docs/FILES.md | 2 +- docs/docs/INSTALLATION.md | 2 +- docs/docs/PROXY.md | 2 +- docs/docs/REQUIREMENTS.md | 2 +- docs/docs/SETTINGS.md | 2 +- docs/docs/UPDATES.md | 2 +- docs/index.md | 53 ++++++++++++++++++++------------------- 8 files changed, 34 insertions(+), 33 deletions(-) diff --git a/docs/docs/ASYNC.md b/docs/docs/ASYNC.md index 9baf4ce2..846c366f 100644 --- a/docs/docs/ASYNC.md +++ b/docs/docs/ASYNC.md @@ -621,4 +621,4 @@ The return value of the callable can be: If the callable does not return anything, the loop will behave is if `GenericLoop::PAUSE` was returned. -Next section \ No newline at end of file +Next section \ No newline at end of file diff --git a/docs/docs/FILES.md b/docs/docs/FILES.md index 304340d9..fae28309 100644 --- a/docs/docs/FILES.md +++ b/docs/docs/FILES.md @@ -534,4 +534,4 @@ if (!isset($result['file_name'])) { * `$result['file_size']` - File size * `$result['file_name']` - File name -Next section +Next section \ No newline at end of file diff --git a/docs/docs/INSTALLATION.md b/docs/docs/INSTALLATION.md index aca19006..4f13df2f 100644 --- a/docs/docs/INSTALLATION.md +++ b/docs/docs/INSTALLATION.md @@ -91,4 +91,4 @@ Then you can require the package: composer require danog/madelineproto ``` -Next section +Next section \ No newline at end of file diff --git a/docs/docs/PROXY.md b/docs/docs/PROXY.md index 2fce29ba..a6ed4f1f 100644 --- a/docs/docs/PROXY.md +++ b/docs/docs/PROXY.md @@ -177,4 +177,4 @@ In order to build your proxy, you have to use the new MadelineProto stream API t Feel free to study [existing proxies](https://github.com/danog/MadelineProto/tree/master/src/danog/MadelineProto/Stream/Proxy) and the [stream API](https://github.com/danog/MadelineProto/tree/master/src/danog/MadelineProto/Stream): it's well structured and well documented, so feel free to read the code. Don't forget to add support for [TLS connections](https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/Stream/Proxy/SocksProxy.php#L141) as well! -Next section \ No newline at end of file +Next section \ No newline at end of file diff --git a/docs/docs/REQUIREMENTS.md b/docs/docs/REQUIREMENTS.md index 8fee2938..269be4bb 100644 --- a/docs/docs/REQUIREMENTS.md +++ b/docs/docs/REQUIREMENTS.md @@ -18,4 +18,4 @@ sudo apt-get install php7.4 php7.4-dev php7.4-fpm php7.4-xml php7.4-zip php7.4-g Next, follow the instructions on [voip.madelineproto.xyz](https://voip.madelineproto.xyz) and [prime.madelineproto.xyz](https://prime.madelineproto.xyz) to install libtgvoip and PrimeModule. -Next section +Next section \ No newline at end of file diff --git a/docs/docs/SETTINGS.md b/docs/docs/SETTINGS.md index bd0c66c4..915309c7 100644 --- a/docs/docs/SETTINGS.md +++ b/docs/docs/SETTINGS.md @@ -443,4 +443,4 @@ The settings array can be accessed and modified in the instantiated class by acc $MadelineProto->settings['updates']['handle_updates'] = true; // reenable update fetching ``` -Next section +Next section \ No newline at end of file diff --git a/docs/docs/UPDATES.md b/docs/docs/UPDATES.md index c0469ce6..3cfef816 100644 --- a/docs/docs/UPDATES.md +++ b/docs/docs/UPDATES.md @@ -284,4 +284,4 @@ You can use the `resetUpdateState` method to reset the update state and fetch al $MadelineProto->resetUpdateState(); ``` -Next section +Next section \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index da1ee5b3..92be2117 100644 --- a/docs/index.md +++ b/docs/index.md @@ -63,32 +63,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro ## Documentation -* [Async](https://docs.madelineproto.xyz/docs/ASYNC.html) - * [Usage](https://docs.madelineproto.xyz/docs/ASYNC.html#usage) - * [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) - * [Multiple async](https://docs.madelineproto.xyz/docs/ASYNC.html#multiple-async) - * [ArrayAccess async](https://docs.madelineproto.xyz/docs/ASYNC.html#arrayaccess-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) - * [Helper methods](https://docs.madelineproto.xyz/docs/ASYNC.html#helper-methods) - * [Async sleep](https://docs.madelineproto.xyz/docs/ASYNC.html#async-sleep-does-not-block-the-main-thread) - * [Async readline](https://docs.madelineproto.xyz/docs/ASYNC.html#async-readline-does-not-block-the-main-thread) - * [Async echo](https://docs.madelineproto.xyz/docs/ASYNC.html#async-echo-does-not-block-the-main-thread) - * [MadelineProto artax HTTP client](https://docs.madelineproto.xyz/docs/ASYNC.html#madelineproto-artax-http-client) - * [Async forking](https://docs.madelineproto.xyz/docs/ASYNC.html#async-forking-does-green-thread-forking) - * [Async flock](https://docs.madelineproto.xyz/docs/ASYNC.html#async-flock) - * [Combining async operations](https://docs.madelineproto.xyz/docs/ASYNC.html#combining-async-operations) - * [MadelineProto async loop APIs](https://docs.madelineproto.xyz/docs/ASYNC.html#async-loop-apis) - * [Loop](https://docs.madelineproto.xyz/docs/ASYNC.html#loop) - * [ResumableLoop](https://docs.madelineproto.xyz/docs/ASYNC.html#resumableloop) - * [SignalLoop](https://docs.madelineproto.xyz/docs/ASYNC.html#signalloop) - * [ResumableSignalLoop](https://docs.madelineproto.xyz/docs/ASYNC.html#resumablesignalloop) - * [GenericLoop](https://docs.madelineproto.xyz/docs/ASYNC.html#genericloop) * [Creating a client](https://docs.madelineproto.xyz/docs/CREATING_A_CLIENT.html) * [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) * [Getting permission to use the telegram API](https://docs.madelineproto.xyz/docs/LOGIN.html#getting-permission-to-use-the-telegram-api) @@ -172,6 +146,32 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * [Use pre-built Socks5 proxy](https://docs.madelineproto.xyz/docs/PROXY.html#socks5-proxy) * [Use pre-built HTTP proxy](https://docs.madelineproto.xyz/docs/PROXY.html#http-proxy) * [Build your own proxy](https://docs.madelineproto.xyz/docs/PROXY.html#build-your-proxy) +* [Async](https://docs.madelineproto.xyz/docs/ASYNC.html) + * [Usage](https://docs.madelineproto.xyz/docs/ASYNC.html#usage) + * [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) + * [Multiple async](https://docs.madelineproto.xyz/docs/ASYNC.html#multiple-async) + * [ArrayAccess async](https://docs.madelineproto.xyz/docs/ASYNC.html#arrayaccess-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) + * [Helper methods](https://docs.madelineproto.xyz/docs/ASYNC.html#helper-methods) + * [Async sleep](https://docs.madelineproto.xyz/docs/ASYNC.html#async-sleep-does-not-block-the-main-thread) + * [Async readline](https://docs.madelineproto.xyz/docs/ASYNC.html#async-readline-does-not-block-the-main-thread) + * [Async echo](https://docs.madelineproto.xyz/docs/ASYNC.html#async-echo-does-not-block-the-main-thread) + * [MadelineProto artax HTTP client](https://docs.madelineproto.xyz/docs/ASYNC.html#madelineproto-artax-http-client) + * [Async forking](https://docs.madelineproto.xyz/docs/ASYNC.html#async-forking-does-green-thread-forking) + * [Async flock](https://docs.madelineproto.xyz/docs/ASYNC.html#async-flock) + * [Combining async operations](https://docs.madelineproto.xyz/docs/ASYNC.html#combining-async-operations) + * [MadelineProto async loop APIs](https://docs.madelineproto.xyz/docs/ASYNC.html#async-loop-apis) + * [Loop](https://docs.madelineproto.xyz/docs/ASYNC.html#loop) + * [ResumableLoop](https://docs.madelineproto.xyz/docs/ASYNC.html#resumableloop) + * [SignalLoop](https://docs.madelineproto.xyz/docs/ASYNC.html#signalloop) + * [ResumableSignalLoop](https://docs.madelineproto.xyz/docs/ASYNC.html#resumablesignalloop) + * [GenericLoop](https://docs.madelineproto.xyz/docs/ASYNC.html#genericloop) * [Using methods](https://docs.madelineproto.xyz/docs/USING_METHODS.html) * [FULL API Documentation with descriptions](https://docs.madelineproto.xyz/API_docs/methods/) * [Logout](https://docs.madelineproto.xyz/logout.html) @@ -522,6 +522,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro You can find examples for nearly every MadelineProto function in * [magnaluna webradio](https://magna.madelineproto.xyz) - Multifeatured Telegram VoIP webradio +* [`downloadRenameBot.php`](https://github.com/danog/MadelineProto/blob/master/examples/downloadRenameBot.php) - download files by URL and rename Telegram files using this async parallelized bot! * [`tests/testing.php`](https://github.com/danog/MadelineProto/blob/master/tests/testing.php) - examples for making/receiving calls, making secret chats, sending secret chat messages, videos, audios, voice recordings, gifs, stickers, photos, sending normal messages, videos, audios, voice recordings, gifs, stickers, photos. * [`bot.php`](https://github.com/danog/MadelineProto/blob/master/examples/bot.php) - examples for sending normal messages, downloading any media * [`secret_bot.php`](https://github.com/danog/MadelineProto/blob/master/examples/secret_bot.php) - secret chat bot