telegram api method · layer 229 · #efea3803
langpack.getStrings
Get strings from a language pack
definition
langpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector<string> = Vector<LangPackString>;
parameters
| name | type | description |
|---|---|---|
lang_pack | string | Platform identifier (i.e. android, tdesktop, etc). |
lang_code | string | Either an ISO 639-1 language code or a language pack name obtained from a language pack link. |
keys | Vector<string> | Strings to get |
returns
Vector<LangPackString>
errors (3)
| 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. |
| 400 | LANG_CODE_NOT_SUPPORTED | The specified language code is not supported. |
| 400 | LANG_PACK_INVALID | The provided language pack is invalid. |
history
present in layers 67–229 · constructor id changed 1×
| id | layers |
|---|---|
| #2e1ee318 | 67–84 |
| #efea3803 | 85–229 |