Layer 220
LangpackGetLanguage
Get information about a language in a localization pack
method
Users
langpack.getLanguage#6a596502 lang_pack:string lang_code:string = LangPackLanguage;
Parameters
| Name | Type | Description |
|---|---|---|
| LangPack | string | Platform identifier (i. e. android, tdesktop, etc). |
| LangCode | string | Either an ISO 639-1 language code or a language pack name obtained from a language pack link. |
Returns
LangPackLanguagePossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | LANG_CODE_NOT_SUPPORTED | The specified language code is not supported. |
| 400 | LANG_PACK_INVALID | The provided language pack is invalid. |
Gogram Example
// LangpackGetLanguage - positional arguments result, err := client.LangpackGetLanguage("...", "...") if err != nil { // handle error } // result is *tg.LangPackLanguage