* Returns an IETF language tag of the language preferred in the country, which should be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown.
13
*/
14
class GetPreferredCountryLanguage extends TdFunction
15
{
16
public const TYPE_NAME = 'getPreferredCountryLanguage';
17
18
/**
19
* A two-letter ISO 3166-1 alpha-2 country code.
20
*/
21
protected string $countryCode;
22
23
public function __construct(string $countryCode)
24
{
25
$this->countryCode = $countryCode;
26
}
27
28
public static function fromArray(array $array): GetPreferredCountryLanguage