help.getCountriesList
Get name, ISO code, localized name and phone codes/patterns of all available countries
func (c *Client) HelpGetCountriesList(ctx context.Context, request *HelpGetCountriesListRequest) (HelpCountriesListClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.HelpGetCountriesList(ctx, &tg.HelpGetCountriesListRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // HelpCountriesListClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
LangCode | string | yes | Language code of the current user |
Hash | int | yes | Hash used for caching, for more info click here. |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
help.getCountriesList#735787a8