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

2.5 KiB

title: danog\MadelineProto\Settings\Files: File management settings. description:

danog\MadelineProto\Settings\Files

Back to index

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?


Generated by danog/phpdoc

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?

Generated by danog/phpdoc

getUploadParallelChunks(): int

Get upload parallel chunk count.


Generated by danog/phpdoc

setUploadParallelChunks(int $uploadParallelChunks): self

Set upload parallel chunk count.

Parameters:

  • $uploadParallelChunks: int Upload parallel chunk count

Generated by danog/phpdoc

getDownloadParallelChunks(): int

Get download parallel chunk count.


Generated by danog/phpdoc

setDownloadParallelChunks(int $downloadParallelChunks): self

Set download parallel chunk count.

Parameters:

  • $downloadParallelChunks: int Download parallel chunk count

Generated by danog/phpdoc

getReportBrokenMedia(): bool

Get whether to report undownloadable media to TSF.


Generated by danog/phpdoc

setReportBrokenMedia(bool $reportBrokenMedia): self

Set whether to report undownloadable media to TSF.

Parameters:

  • $reportBrokenMedia: bool Whether to report undownloadable media to TSF

Generated by danog/phpdoc

hasChanged(): bool

Get whether this setting was changed, also applies changes.


Generated by danog/phpdoc


Generated by danog/phpdoc