From 7044b4ca27cf008cdbdf87285f3596ce03fc5793 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 1 Apr 2018 10:50:53 +0000 Subject: [PATCH] 1st of April --- build_docs_index.php | 4 ++-- docs/docs/CALLS.md | 2 +- docs/docs/CHAT_INFO.md | 2 +- docs/docs/CONTRIB.md | 2 +- docs/docs/CREATING_A_CLIENT.md | 2 +- docs/docs/DIALOGS.md | 2 +- docs/docs/EXCEPTIONS.md | 2 +- docs/docs/FEATURES.md | 2 +- docs/docs/FILES.md | 2 +- docs/docs/FLOOD_WAIT.md | 2 +- docs/docs/INLINE_BUTTONS.md | 2 +- docs/docs/INSTALLATION.md | 2 +- docs/docs/LOGGING.md | 2 +- docs/docs/LOGIN.md | 2 +- docs/docs/LUA.md | 2 +- docs/docs/PROXY.md | 2 +- docs/docs/REQUIREMENTS.md | 2 +- docs/docs/SECRET_CHATS.md | 2 +- docs/docs/SELF.md | 2 +- docs/docs/SETTINGS.md | 2 +- docs/docs/TEMPLATES.md | 2 +- docs/docs/UPDATES.md | 2 +- docs/docs/USING_METHODS.md | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/build_docs_index.php b/build_docs_index.php index 525a6b64..69f24ae9 100644 --- a/build_docs_index.php +++ b/build_docs_index.php @@ -60,9 +60,9 @@ foreach ($orderedfiles as $key => $filename) { if (isset($orderedfiles[$key + 1])) { $nextfile = 'https://docs.madelineproto.xyz/docs/'.basename($orderedfiles[$key + 1], '.md').'.html'; $prevfile = $key === 0 ? 'https://docs.madelineproto.xyz' : 'https://docs.madelineproto.xyz/docs/'.basename($orderedfiles[$key - 1], '.md').'.html'; - $lines[count($lines)] = "\n"; + $lines[count($lines)] = "\n"; } else { - $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 47409ab0..bf8c8095 100644 --- a/docs/docs/CALLS.md +++ b/docs/docs/CALLS.md @@ -111,4 +111,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 8ebbbec0..d2dbd338 100644 --- a/docs/docs/CHAT_INFO.md +++ b/docs/docs/CHAT_INFO.md @@ -42,4 +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/CONTRIB.md b/docs/docs/CONTRIB.md index b0c215c2..44d960ef 100644 --- a/docs/docs/CONTRIB.md +++ b/docs/docs/CONTRIB.md @@ -88,4 +88,4 @@ While writing this client, I looked at many projects for inspiration and help. H Thanks to the devs that contributed to these projects, MadelineProto is now an easy, well-written and complete MTProto client. - \ 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 8a58a62f..00e06b41 100644 --- a/docs/docs/CREATING_A_CLIENT.md +++ b/docs/docs/CREATING_A_CLIENT.md @@ -20,4 +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 0e0ec1fd..903d4b99 100644 --- a/docs/docs/DIALOGS.md +++ b/docs/docs/DIALOGS.md @@ -29,4 +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.html) and [User](../API_docs/types/User.html) 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 7df7672c..d5e0475e 100644 --- a/docs/docs/EXCEPTIONS.md +++ b/docs/docs/EXCEPTIONS.md @@ -102,4 +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 45bf4d1d..cd4a457d 100644 --- a/docs/docs/FEATURES.md +++ b/docs/docs/FEATURES.md @@ -40,4 +40,4 @@ * [Clickable inline buttons](#inline-buttons)! - \ 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 80d40f2d..f862cb01 100644 --- a/docs/docs/FILES.md +++ b/docs/docs/FILES.md @@ -426,4 +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 dc34b33d..560b2094 100644 --- a/docs/docs/FLOOD_WAIT.md +++ b/docs/docs/FLOOD_WAIT.md @@ -11,4 +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 017b9f0a..8ddefdb9 100644 --- a/docs/docs/INLINE_BUTTONS.md +++ b/docs/docs/INLINE_BUTTONS.md @@ -48,4 +48,4 @@ And click them: $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 dcd3cfa5..3228ba50 100644 --- a/docs/docs/INSTALLATION.md +++ b/docs/docs/INSTALLATION.md @@ -118,4 +118,4 @@ cp -a *php tests userbots .env* .. 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 41cc9614..6bdc1d0c 100644 --- a/docs/docs/LOGGING.md +++ b/docs/docs/LOGGING.md @@ -17,4 +17,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 b92cc671..439f8417 100644 --- a/docs/docs/LOGIN.md +++ b/docs/docs/LOGIN.md @@ -57,4 +57,4 @@ $MadelineProto->logout(); **If** you want to logout, you can use the logout function, see [here for the parameters and the result](https://docs.madelineproto.xyz/logout.html). - \ 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 a46d8ac1..2583767c 100644 --- a/docs/docs/LUA.md +++ b/docs/docs/LUA.md @@ -16,4 +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 b8ed2d34..51bd322d 100644 --- a/docs/docs/PROXY.md +++ b/docs/docs/PROXY.md @@ -119,4 +119,4 @@ Can return additional HTTP headers to use when the HTTP protocol is being used. Returns the resource used for socket communication: should call `$socket->getResource()`. - \ 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 0a96a99d..70eb2fef 100644 --- a/docs/docs/REQUIREMENTS.md +++ b/docs/docs/REQUIREMENTS.md @@ -13,4 +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](https://voip.madelineproto.xyz) and [prime.madelineproto.xyz](https://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 753cabb3..ed256ef9 100644 --- a/docs/docs/SECRET_CHATS.md +++ b/docs/docs/SECRET_CHATS.md @@ -66,4 +66,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 3fd7f37d..7ecec0a0 100644 --- a/docs/docs/SELF.md +++ b/docs/docs/SELF.md @@ -8,4 +8,4 @@ $me = $MadelineProto->get_self(); [`get_self`](https://docs.madelineproto.xyz/get_self.html) returns a [User object](../API_docs/types/User.html) 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 63c784d5..bfd9c411 100644 --- a/docs/docs/SETTINGS.md +++ b/docs/docs/SETTINGS.md @@ -410,4 +410,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/TEMPLATES.md b/docs/docs/TEMPLATES.md index bd8a7da7..25b6b432 100644 --- a/docs/docs/TEMPLATES.md +++ b/docs/docs/TEMPLATES.md @@ -31,4 +31,4 @@ $MadelineProto->set_web_template($new_template); The new template must have a structure similar the the default template. - \ 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 e6600a16..9978cd6e 100644 --- a/docs/docs/UPDATES.md +++ b/docs/docs/UPDATES.md @@ -190,4 +190,4 @@ $MadelineProto->loop(-1); This way, each update will be managed in its own fork. Note that multiprocessing is not the same as multithreading, and should be avoided unless lengthy operations are made in the update handler. - \ 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 8d8d78c1..a7c563f1 100644 --- a/docs/docs/USING_METHODS.md +++ b/docs/docs/USING_METHODS.md @@ -101,4 +101,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