* Writes a part of a generated file. This method is intended to be used only if the client has no direct access to TDLib's file system, because it is usually slower than a direct write to the destination file.
13
*/
14
class WriteGeneratedFilePart extends TdFunction
15
{
16
public const TYPE_NAME = 'writeGeneratedFilePart';
17
18
/**
19
* The identifier of the generation process.
20
*/
21
protected string $generationId;
22
23
/**
24
* The offset from which to write the data to the file.
25
*/
26
protected int $offset;
27
28
/**
29
* The data to write.
30
*/
31
protected string $data;
32
33
public function __construct(string $generationId, int $offset, string $data)
34
{
35
$this->generationId = $generationId;
36
$this->offset = $offset;
37
$this->data = $data;
38
}
39
40
public static function fromArray(array $array): WriteGeneratedFilePart