diff --git a/docs/docs/CONTRIB.md b/docs/docs/CONTRIB.md index c51c2254..3c283d11 100644 --- a/docs/docs/CONTRIB.md +++ b/docs/docs/CONTRIB.md @@ -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 Next section \ No newline at end of file diff --git a/docs/docs/FILES.md b/docs/docs/FILES.md index 304340d9..d1edd12a 100644 --- a/docs/docs/FILES.md +++ b/docs/docs/FILES.md @@ -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). 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/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..a6a0e4fe 100644 --- a/docs/docs/SETTINGS.md +++ b/docs/docs/SETTINGS.md @@ -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 -
## `$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 ``` -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..9676a21b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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