* Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously.
13
*/
14
class CleanFileName extends TdFunction
15
{
16
public const TYPE_NAME = 'cleanFileName';
17
18
/**
19
* File name or path to the file.
20
*
21
* @var string
22
*/
23
protected string $fileName;
24
25
public function __construct(string $fileName)
26
{
27
$this->fileName = $fileName;
28
}
29
30
public static function fromArray(array $array): CleanFileName