langpack.getLangPack
Get localization pack strings
func (c *Client) LangpackGetLangPack(ctx context.Context, request *LangpackGetLangPackRequest) (*LangPackDifference, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.LangpackGetLangPack(ctx, &tg.LangpackGetLangPackRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *LangPackDifference
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
LangPack | string | yes | Platform identifier (i.e. android, tdesktop, etc). |
LangCode | string | yes | Either an ISO 639-1 language code or a language pack name obtained from a language pack link. |
Returns
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. |
References
- Official documentation
- Generated Go reference
- TL definition:
langpack.getLangPack#f2f2330a