Skip to main content

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

NameTypeRequiredDescription
LangCodestringyesLanguage code of the current user
HashintyesHash used for caching, for more info click here.

Returns

HelpCountriesListClass

References