danog\MadelineProto\Settings\Files
Author: Daniil Gentili daniil@daniil.it
File management settings.
Method list:
getAllowAutomaticUpload(): boolsetAllowAutomaticUpload(bool $allowAutomaticUpload): selfgetUploadParallelChunks(): intsetUploadParallelChunks(int $uploadParallelChunks): selfgetDownloadParallelChunks(): intsetDownloadParallelChunks(int $downloadParallelChunks): selfgetReportBrokenMedia(): boolsetReportBrokenMedia(bool $reportBrokenMedia): selfgetDownloadLink(): ?stringsetDownloadLink(?string $downloadLink): self
Methods:
getAllowAutomaticUpload(): bool
Get allow automatic upload of files from file paths present in constructors?
setAllowAutomaticUpload(bool $allowAutomaticUpload): self
Set allow automatic upload of files from file paths present in constructors?
Parameters:
$allowAutomaticUpload:boolAllow automatic upload of files from file paths present in constructors?
getUploadParallelChunks(): int
Get upload parallel chunk count.
setUploadParallelChunks(int $uploadParallelChunks): self
Set upload parallel chunk count.
Parameters:
$uploadParallelChunks:intUpload parallel chunk count
getDownloadParallelChunks(): int
Get download parallel chunk count.
setDownloadParallelChunks(int $downloadParallelChunks): self
Set download parallel chunk count.
Parameters:
$downloadParallelChunks:intDownload parallel chunk count
getReportBrokenMedia(): bool
Get whether to report undownloadable media to TSF.
setReportBrokenMedia(bool $reportBrokenMedia): self
Set whether to report undownloadable media to TSF.
Parameters:
$reportBrokenMedia:boolWhether to report undownloadable media to TSF
getDownloadLink(): ?string
Get custom download link URL for CLI bots, used by getDownloadLink.
setDownloadLink(?string $downloadLink): self
Only needed for CLI bots, not bots started via web.
Sets custom download link URL for CLI bots, used by getDownloadLink.
Can be null, in which case MadelineProto will automatically generate a download link.
Parameters:
$downloadLink:?stringCustom download link URL for CLI bots, used bygetDownloadLink.
Generated by danog/phpdoc