-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAddCustomServerLanguagePack.php
More file actions
49 lines (40 loc) · 1.15 KB
/
Copy pathAddCustomServerLanguagePack.php
File metadata and controls
49 lines (40 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* This phpFile is auto-generated.
*/
declare(strict_types=1);
namespace AurimasNiekis\TdLibSchema;
/**
* Adds a custom server language pack to the list of installed language packs in current localization target. Can be called before authorization.
*/
class AddCustomServerLanguagePack extends TdFunction
{
public const TYPE_NAME = 'addCustomServerLanguagePack';
/**
* Identifier of a language pack to be added; may be different from a name that is used in an "https://t.me/setlanguage/" link.
*
* @var string
*/
protected string $languagePackId;
public function __construct(string $languagePackId)
{
$this->languagePackId = $languagePackId;
}
public static function fromArray(array $array): AddCustomServerLanguagePack
{
return new static(
$array['language_pack_id'],
);
}
public function typeSerialize(): array
{
return [
'@type' => static::TYPE_NAME,
'language_pack_id' => $this->languagePackId,
];
}
public function getLanguagePackId(): string
{
return $this->languagePackId;
}
}