Layer 220
LangpackGetStrings
Get strings from a language pack
method
Users
langpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector<string> = Vector<LangPackString>;
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. |
| Keys | Vector<string> | Strings to get |
Returns
VectorPossible 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
// LangpackGetStrings - positional arguments result, err := client.LangpackGetStrings("...", "...", "...") if err != nil { // handle error } // result is *tg.Vector