Layer 220
constructor
help.country#c3878e23 flags:# hidden:flags.0?true iso2:string default_name:string name:flags.1?string country_codes:Vector<help.CountryCode> = help.Country;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Hidden flags.0?true Whether this country should not be shown in the list
Iso2 string ISO code of country
DefaultName string Name of the country in the country's language
Name flags.1?string Name of the country in the user's language, if different from the original name
CountryCodes Vector<help.CountryCode> Phone codes/patterns

Returns

help.Country

Gogram Example

// Creating HelpCountry constructor
obj := &tg.HelpCountry{
    Iso2: "...",
    DefaultName: "...",
    CountryCodes: []tg.HelpCountryCode{&tg.HelpCountryCode{}},

    // Optional fields:
    // Hidden: true,
    // Name: "...",
}