MadelineProtoDocs/docs/PHP/danog/MadelineProto/Settings/Files.md

119 lines
2.5 KiB
Markdown
Raw Normal View History

2020-10-15 18:42:54 +02:00
---
title: danog\MadelineProto\Settings\Files: File management settings.
description:
---
# `danog\MadelineProto\Settings\Files`
[Back to index](../../../index.md)
> Author: Daniil Gentili <daniil@daniil.it>
File management settings.
## Method list:
* `getAllowAutomaticUpload(): bool`
* `setAllowAutomaticUpload(bool $allowAutomaticUpload): self`
* `getUploadParallelChunks(): int`
* `setUploadParallelChunks(int $uploadParallelChunks): self`
* `getDownloadParallelChunks(): int`
* `setDownloadParallelChunks(int $downloadParallelChunks): self`
* `getReportBrokenMedia(): bool`
* `setReportBrokenMedia(bool $reportBrokenMedia): self`
* `hasChanged(): bool`
## Methods:
### `getAllowAutomaticUpload(): bool`
Get allow automatic upload of files from file paths present in constructors?
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
### `setAllowAutomaticUpload(bool $allowAutomaticUpload): self`
Set allow automatic upload of files from file paths present in constructors?
Parameters:
* `$allowAutomaticUpload`: `bool` Allow automatic upload of files from file paths present in constructors?
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
### `getUploadParallelChunks(): int`
Get upload parallel chunk count.
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
### `setUploadParallelChunks(int $uploadParallelChunks): self`
Set upload parallel chunk count.
Parameters:
* `$uploadParallelChunks`: `int` Upload parallel chunk count
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
### `getDownloadParallelChunks(): int`
Get download parallel chunk count.
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
### `setDownloadParallelChunks(int $downloadParallelChunks): self`
Set download parallel chunk count.
Parameters:
* `$downloadParallelChunks`: `int` Download parallel chunk count
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
### `getReportBrokenMedia(): bool`
Get whether to report undownloadable media to TSF.
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
### `setReportBrokenMedia(bool $reportBrokenMedia): self`
Set whether to report undownloadable media to TSF.
Parameters:
* `$reportBrokenMedia`: `bool` Whether to report undownloadable media to TSF
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
### `hasChanged(): bool`
Get whether this setting was changed, also applies changes.
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)