telegram api method · layer 229 · #735787a8

help.getCountriesList

usable by users

Get name, ISO code, localized name and phone codes/patterns of all available countries

definition

help.getCountriesList#735787a8 lang_code:string hash:int = help.CountriesList;

parameters

nametypedescription
lang_codestringLanguage code of the current user
hashintHash used for caching, for more info click here.

returns

help.CountriesList

errors (1)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.

history

present in layers 118–229

idlayers
#735787a8118–229