This commit is contained in:
Daniil Gentili 2018-03-20 17:36:07 +01:00
parent a6232fa43c
commit 11037bd9f6
21 changed files with 25 additions and 41 deletions

View File

@ -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<button href=\"$nextfile\">Next section</button>";
$lines[count($lines)] = "\n<form action=\"$nextfile\"><input type=\"submit\" value=\"Next section\" /></form>";
}
file_put_contents($filename, implode("\n", $lines));

View File

@ -115,5 +115,4 @@ foreach ($updates as $update) {
<button href="https://docs.madelineproto.xyz/docs/SECRET_CHATS.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/SECRET_CHATS.html"><input type="submit" value="Next section" /></form>

View File

@ -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
<button href="https://docs.madelineproto.xyz/docs/DIALOGS.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/DIALOGS.html"><input type="submit" value="Next section" /></form>

View File

@ -20,5 +20,4 @@ To change the session file after starting MadelineProto, do the following:
$MadelineProto->session = 'newsession.madeline';
```
<button href="https://docs.madelineproto.xyz/docs/LOGIN.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/LOGIN.html"><input type="submit" value="Next section" /></form>

View File

@ -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.
<button href="https://docs.madelineproto.xyz/docs/INLINE_BUTTONS.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/INLINE_BUTTONS.html"><input type="submit" value="Next section" /></form>

View File

@ -102,5 +102,4 @@ try {
}
```
<button href="https://docs.madelineproto.xyz/docs/FLOOD_WAIT.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/FLOOD_WAIT.html"><input type="submit" value="Next section" /></form>

View File

@ -42,5 +42,4 @@
<button href="https://docs.madelineproto.xyz/docs/REQUIREMENTS.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/REQUIREMENTS.html"><input type="submit" value="Next section" /></form>

View File

@ -426,5 +426,4 @@ $output_file_name = $MadelineProto->download_to_file(
);
```
<button href="https://docs.madelineproto.xyz/docs/CHAT_INFO.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/CHAT_INFO.html"><input type="submit" value="Next section" /></form>

View File

@ -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!
<button href="https://docs.madelineproto.xyz/docs/LOGGING.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/LOGGING.html"><input type="submit" value="Next section" /></form>

View File

@ -51,5 +51,4 @@ $button->click();
```
<button href="https://docs.madelineproto.xyz/docs/CALLS.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/CALLS.html"><input type="submit" value="Next section" /></form>

View File

@ -121,5 +121,4 @@ Now open `.env` and edit its values as needed.
<button href="https://docs.madelineproto.xyz/docs/UPDATES.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/UPDATES.html"><input type="submit" value="Next section" /></form>

View File

@ -16,5 +16,4 @@ MadelineProto provides a unified class for logging messages to the logging desti
By default, `$level` is `\danog\MadelineProto\Logger:NOTICE`.
<button href="https://docs.madelineproto.xyz/docs/USING_METHODS.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/USING_METHODS.html"><input type="submit" value="Next section" /></form>

View File

@ -59,5 +59,4 @@ Use `logout` to logout, see [here for the parameters and the result](https://doc
<button href="https://docs.madelineproto.xyz/docs/FEATURES.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/FEATURES.html"><input type="submit" value="Next section" /></form>

View File

@ -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).
<button href="https://docs.madelineproto.xyz/docs/PROXY.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/PROXY.html"><input type="submit" value="Next section" /></form>

View File

@ -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.
<button href="https://docs.madelineproto.xyz/docs/CONTRIBUTING.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/CONTRIBUTING.html"><input type="submit" value="Next section" /></form>

View File

@ -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.
<button href="https://docs.madelineproto.xyz/docs/INSTALLATION.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/INSTALLATION.html"><input type="submit" value="Next section" /></form>

View File

@ -67,5 +67,4 @@ $secret_chat = $MadelineProto->get_secret_chat($chat);
This method gets info about a certain chat.
<button href="https://docs.madelineproto.xyz/docs/LUA.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/LUA.html"><input type="submit" value="Next section" /></form>

View File

@ -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.
<button href="https://docs.madelineproto.xyz/docs/EXCEPTIONS.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/EXCEPTIONS.html"><input type="submit" value="Next section" /></form>

View File

@ -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
```
<button href="https://docs.madelineproto.xyz/docs/SELF.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/SELF.html"><input type="submit" value="Next section" /></form>

View File

@ -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
<button href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</button>
<button href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/SETTINGS.html"><input type="submit" value="Next section" /></form>

View File

@ -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.
<button href="https://docs.madelineproto.xyz/docs/FILES.html">Next section</button>
<form action="https://docs.madelineproto.xyz/docs/FILES.html"><input type="submit" value="Next section" /></form>