langpack.getDifference
Get new strings in language pack
func (c *Client) LangpackGetDifference(ctx context.Context, request *LangpackGetDifferenceRequest) (*LangPackDifference, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.LangpackGetDifference(ctx, &tg.LangpackGetDifferenceRequest{
// 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. |
FromVersion | int | yes | Previous localization pack version |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | LANG_PACK_INVALID | The provided language pack is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
langpack.getDifference#cd984aa5