From 11037bd9f6830202ad087061eaef37319d5d5a89 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 20 Mar 2018 17:36:07 +0100 Subject: [PATCH] Docufix --- build_docs_index.php | 2 +- docs/docs/CALLS.md | 3 +-- docs/docs/CHAT_INFO.md | 3 +-- docs/docs/CREATING_A_CLIENT.md | 3 +-- docs/docs/DIALOGS.md | 3 +-- docs/docs/EXCEPTIONS.md | 3 +-- docs/docs/FEATURES.md | 3 +-- docs/docs/FILES.md | 3 +-- docs/docs/FLOOD_WAIT.md | 3 +-- docs/docs/INLINE_BUTTONS.md | 3 +-- docs/docs/INSTALLATION.md | 3 +-- docs/docs/LOGGING.md | 3 +-- docs/docs/LOGIN.md | 3 +-- docs/docs/LUA.md | 3 +-- docs/docs/PROXY.md | 3 +-- docs/docs/REQUIREMENTS.md | 3 +-- docs/docs/SECRET_CHATS.md | 3 +-- docs/docs/SELF.md | 3 +-- docs/docs/SETTINGS.md | 3 +-- docs/docs/UPDATES.md | 7 +++++-- docs/docs/USING_METHODS.md | 3 +-- 21 files changed, 25 insertions(+), 41 deletions(-) diff --git a/build_docs_index.php b/build_docs_index.php index 9e9cde6d..ecb770fc 100644 --- a/build_docs_index.php +++ b/build_docs_index.php @@ -59,7 +59,7 @@ foreach ($orderedfiles as $key => $filename) { } if (isset($orderedfiles[$key+1])) { $nextfile = "https://docs.madelineproto.xyz/docs/".basename($orderedfiles[$key+1], '.md').".html"; - $lines[count($lines)] = "\n"; + $lines[count($lines)] = "\n
"; } file_put_contents($filename, implode("\n", $lines)); diff --git a/docs/docs/CALLS.md b/docs/docs/CALLS.md index 9200c6c6..ab560448 100644 --- a/docs/docs/CALLS.md +++ b/docs/docs/CALLS.md @@ -115,5 +115,4 @@ foreach ($updates as $update) { - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/CHAT_INFO.md b/docs/docs/CHAT_INFO.md index ad2e3c08..d58aee2b 100644 --- a/docs/docs/CHAT_INFO.md +++ b/docs/docs/CHAT_INFO.md @@ -42,5 +42,4 @@ You can also use `get_info` to get chat info, see [here for the parameters and t * Speed: very fast * Caching: full - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/CREATING_A_CLIENT.md b/docs/docs/CREATING_A_CLIENT.md index a5141eae..0bf1f23d 100644 --- a/docs/docs/CREATING_A_CLIENT.md +++ b/docs/docs/CREATING_A_CLIENT.md @@ -20,5 +20,4 @@ To change the session file after starting MadelineProto, do the following: $MadelineProto->session = 'newsession.madeline'; ``` - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/DIALOGS.md b/docs/docs/DIALOGS.md index 6dade6c8..a343b838 100644 --- a/docs/docs/DIALOGS.md +++ b/docs/docs/DIALOGS.md @@ -29,5 +29,4 @@ foreach ($MadelineProto->API->chats as $bot_api_id => $chat) { Since bots cannot run `get_dialogs`, you must make use of the internal MadelineProto database to get a list of all users, chats and channels MadelineProto has seen. `$MadelineProto->API->chats` contains a list of [Chat](../API_docs/types/Chat.md) and [User](../API_docs/types/User.md) objects, indexed by bot API id. - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/EXCEPTIONS.md b/docs/docs/EXCEPTIONS.md index 0e2f1f6b..e06bbbd3 100644 --- a/docs/docs/EXCEPTIONS.md +++ b/docs/docs/EXCEPTIONS.md @@ -102,5 +102,4 @@ try { } ``` - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/FEATURES.md b/docs/docs/FEATURES.md index 21f1d858..ad957e80 100644 --- a/docs/docs/FEATURES.md +++ b/docs/docs/FEATURES.md @@ -42,5 +42,4 @@ - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/FILES.md b/docs/docs/FILES.md index ff2a977d..f4409b6c 100644 --- a/docs/docs/FILES.md +++ b/docs/docs/FILES.md @@ -426,5 +426,4 @@ $output_file_name = $MadelineProto->download_to_file( ); ``` - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/FLOOD_WAIT.md b/docs/docs/FLOOD_WAIT.md index 182993af..16914f9f 100644 --- a/docs/docs/FLOOD_WAIT.md +++ b/docs/docs/FLOOD_WAIT.md @@ -11,5 +11,4 @@ floodwaitrate = time it took you to make the method calls + X Use sleep to execute max N calls in `floodwaitrate` seconds, this way you won't get flood waited! - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/INLINE_BUTTONS.md b/docs/docs/INLINE_BUTTONS.md index ad8a7036..54ddb19c 100644 --- a/docs/docs/INLINE_BUTTONS.md +++ b/docs/docs/INLINE_BUTTONS.md @@ -51,5 +51,4 @@ $button->click(); ``` - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/INSTALLATION.md b/docs/docs/INSTALLATION.md index 455af430..4e175620 100644 --- a/docs/docs/INSTALLATION.md +++ b/docs/docs/INSTALLATION.md @@ -121,5 +121,4 @@ Now open `.env` and edit its values as needed. - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/LOGGING.md b/docs/docs/LOGGING.md index b60851aa..df9e3998 100644 --- a/docs/docs/LOGGING.md +++ b/docs/docs/LOGGING.md @@ -16,5 +16,4 @@ MadelineProto provides a unified class for logging messages to the logging desti By default, `$level` is `\danog\MadelineProto\Logger:NOTICE`. - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/LOGIN.md b/docs/docs/LOGIN.md index 809a7283..14bf4c73 100644 --- a/docs/docs/LOGIN.md +++ b/docs/docs/LOGIN.md @@ -59,5 +59,4 @@ Use `logout` to logout, see [here for the parameters and the result](https://doc - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/LUA.md b/docs/docs/LUA.md index a2e008a4..6669de09 100644 --- a/docs/docs/LUA.md +++ b/docs/docs/LUA.md @@ -16,5 +16,4 @@ All MadelineProto wrapper methods (for example upload, download, upload_encrypte td-cli wrappers are also present: you can use the tdcli_function in lua and pass mtproto updates to the tdcli_update_callback via PHP, they will be automatically converted to/from td objects. Please note that the object conversion is not complete, feel free to contribute to the conversion module in [`src/danog/MadelineProto/Conversion/TD.php`](https://github.com/danog/MadelineProto/raw/master/src/danog/MadelineProto/TL/Conversion/TD.php). - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/PROXY.md b/docs/docs/PROXY.md index 5eb79a19..52797f95 100644 --- a/docs/docs/PROXY.md +++ b/docs/docs/PROXY.md @@ -120,5 +120,4 @@ Works like [socket_getsockname](http://php.net/manual/en/function.socket-getsock Can return additional HTTP headers to use when the HTTP protocol is being used. - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/REQUIREMENTS.md b/docs/docs/REQUIREMENTS.md index 66a8c36b..0693ad69 100644 --- a/docs/docs/REQUIREMENTS.md +++ b/docs/docs/REQUIREMENTS.md @@ -13,5 +13,4 @@ sudo apt-get install php7.2 php7.2-dev php7.2-fpm php7.2-curl php7.2-xml php7.2- Next, follow the instructions on voip.madelineproto.xyz and prime.madelineproto.xyz to install libtgvoip and PrimeModule. - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/SECRET_CHATS.md b/docs/docs/SECRET_CHATS.md index 1230bab0..cac4cfc0 100644 --- a/docs/docs/SECRET_CHATS.md +++ b/docs/docs/SECRET_CHATS.md @@ -67,5 +67,4 @@ $secret_chat = $MadelineProto->get_secret_chat($chat); This method gets info about a certain chat. - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/SELF.md b/docs/docs/SELF.md index 41caba8e..2cd69512 100644 --- a/docs/docs/SELF.md +++ b/docs/docs/SELF.md @@ -8,5 +8,4 @@ $me = $MadelineProto->get_self(); [`get_self`](https://docs.madelineproto.xyz/get_self.html) returns a [User object](API_docs/types/User.md) that contains info about the currently logged in user/bot, or false if the current instance is not logged in. - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/SETTINGS.md b/docs/docs/SETTINGS.md index 8cdebbdd..c543f1fb 100644 --- a/docs/docs/SETTINGS.md +++ b/docs/docs/SETTINGS.md @@ -397,5 +397,4 @@ The settings array can be accessed and modified in the instantiated class by acc $MadelineProto->settings['updates']['handle_updates'] = true; // reenable update fetching ``` - - \ No newline at end of file +
\ No newline at end of file diff --git a/docs/docs/UPDATES.md b/docs/docs/UPDATES.md index 617439ec..b0a5f959 100644 --- a/docs/docs/UPDATES.md +++ b/docs/docs/UPDATES.md @@ -69,7 +69,7 @@ try { $MadelineProto->start(); $MadelineProto->setEventHandler('\EventHandler'); $MadelineProto->loop(); -```php +``` This will create an event handler class `EventHandler`, create a MadelineProto session, and set the event handler class to our newly created event handler. @@ -196,4 +196,7 @@ Note that multiprocessing is not the same as multithreading, and should be avoid - \ No newline at end of file + + + +
\ No newline at end of file diff --git a/docs/docs/USING_METHODS.md b/docs/docs/USING_METHODS.md index db192fce..a27713ec 100644 --- a/docs/docs/USING_METHODS.md +++ b/docs/docs/USING_METHODS.md @@ -98,5 +98,4 @@ $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'l If the queue if the specified queue name does not exist, it will be created. - - \ No newline at end of file +
\ No newline at end of file