telegram api method · layer 229 · #735787a8
help.getCountriesList
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
| name | type | description |
|---|---|---|
lang_code | string | Language code of the current user |
hash | int | Hash used for caching, for more info click here. |
returns
errors (1)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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
| id | layers |
|---|---|
| #735787a8 | 118–229 |