telegram api method · layer 229 · #f2f2330a

langpack.getLangPack

usable by users

Get localization pack strings

definition

langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference;

parameters

nametypedescription
lang_packstringPlatform identifier (i.e. android, tdesktop, etc).
lang_codestringEither an ISO 639-1 language code or a language pack name obtained from a language pack link.

returns

LangPackDifference

errors (4)

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.
400LANG_CODE_NOT_SUPPORTEDThe specified language code is not supported.
400LANG_PACK_INVALIDThe provided language pack is invalid.
400LANGUAGE_INVALIDThe specified lang_code is invalid.

history

present in layers 67–229 · constructor id changed 1×

idlayers
#9ab5c58e67–84
#f2f2330a85–229