Layer 224
LangpackGetLangPack
Get localization pack strings
method
Users
langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference;
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
LangPackDifferenceGogram Example
// LangpackGetLangPack - positional arguments result, err := client.LangpackGetLangPack("Hello, World!", "Hello, World!") if err != nil { // handle error } // result is *tg.LangPackDifference
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | LANGUAGE_INVALID | The specified lang_code is invalid. |
| 400 | LANG_CODE_NOT_SUPPORTED | The specified language code is not supported. |
| 400 | LANG_PACK_INVALID | The provided language pack is invalid. |