Update docs

This commit is contained in:
Daniil Gentili 2019-12-29 21:15:44 +01:00
parent 4ed3a8447c
commit 7e995342fe
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
7 changed files with 11 additions and 13 deletions

View File

@ -91,8 +91,8 @@ While writing this client, I looked at many projects for inspiration and help. H
[Webogram](https://github.com/zhukov/webogram)
[Telethon](https://github.com/LonamiWebs/Telethon/)
Thanks to the devs that contributed to these projects, and to MadelineProto itself, MadelineProto is now an easy, well-written and complete MTProto client.
Thanks to the devs that contributed to these projects, MadelineProto is now an easy, well-written and complete MTProto client.
Thank you for using MadelineProto <3
<a href="https://docs.madelineproto.xyz/docs/TEMPLATES.html">Next section</a>

View File

@ -9,7 +9,8 @@ MadelineProto provides **fully parallelized** wrapper methods to upload and down
Maximum file size is of 1.5 GB.
[Now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html)
Example bot: [`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!
* [Bot API file IDs](#bot-api-file-ids)
* [Uploading & sending files](#sending-files)
@ -38,7 +39,7 @@ Maximum file size is of 1.5 GB.
To send photos and documents to someone, use the [$MadelineProto->messages->sendMedia](https://docs.madelineproto.xyz/API_docs/methods/messages.sendMedia.html) method, click on the link for more info.
All files will be uploaded **asynchronously and in parallel**, 3000 chunks at a time for maximum performance (this value can be tweaked in the [settings](https://docs.madelineproto.xyz/docs/SETTINGS.html)).
All files will be uploaded **asynchronously and in parallel**, 20 chunks at a time for maximum performance (this value can be tweaked in the [settings](https://docs.madelineproto.xyz/docs/SETTINGS.html)).
The required `message` parameter is the caption: it can contain URLs, mentions, bold and italic text, thanks to the `parse_mode` parameter, that enables markdown or HTML parsing.
@ -197,7 +198,7 @@ The `file` can be a file name, a URL, or a file uploaded by someone else (can be
You can also only upload a file, without actually sending it to anyone, storing only the file ID for later usage.
All files will be uploaded **asynchronously and in parallel**, 3000 chunks at a time for maximum performance (this value can be tweaked in the [settings](https://docs.madelineproto.xyz/docs/SETTINGS.html)).
All files will be uploaded **asynchronously and in parallel**, 20 chunks at a time for maximum performance (this value can be tweaked in the [settings](https://docs.madelineproto.xyz/docs/SETTINGS.html)).
The [$MadelineProto->messages->uploadMedia](https://docs.madelineproto.xyz/API_docs/methods/messages_uploadMedia.html) function is a reduced version of the [$MadelineProto->messages->sendMedia](https://docs.madelineproto.xyz/API_docs/methods/messages_sendMedia.html), that requires only a `media` parameter, with the media to upload (on normal users, the `peer` field should be populated with `@me` or another value).

View File

@ -91,4 +91,4 @@ Then you can require the package:
composer require danog/madelineproto
```
<a href="https://docs.madelineproto.xyz/docs/UPDATES.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/UPDATES.html">Next section</a>

View File

@ -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.
<a href="https://docs.madelineproto.xyz/docs/INSTALLATION.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/INSTALLATION.html">Next section</a>

View File

@ -343,10 +343,6 @@ Description: Default number of chunks for parallel download
Default: `1024*1024`
Description: Default part size for file download
### `$settings['download']['report_broken_media']`
Default: `true`
Description: Whether or not to automatically report undownloadable media to support
<hr>
## `$settings['msg_array_limit']`
@ -443,4 +439,4 @@ The settings array can be accessed and modified in the instantiated class by acc
$MadelineProto->settings['updates']['handle_updates'] = true; // reenable update fetching
```
<a href="https://docs.madelineproto.xyz/docs/SELF.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/SELF.html">Next section</a>

View File

@ -284,4 +284,4 @@ You can use the `resetUpdateState` method to reset the update state and fetch al
$MadelineProto->resetUpdateState();
```
<a href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</a>

View File

@ -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