langpack.getLanguage

Get information about a language in a localization pack

langPackLanguage#eeca5ce3 flags:# official:flags.0?true rtl:flags.2?true beta:flags.3?true name:string native_name:string lang_code:string base_lang_code:flags.1?string plural_code:string strings_count:int translated_count:int translations_url:string = LangPackLanguage;
---functions---
langpack.getLanguage#6a596502 lang_pack:string lang_code:string = LangPackLanguage;

Parameters

Name Type Description
lang_pack string Language pack name, usually obtained from a language pack link
lang_code string Language code

Result

LangPackLanguage

Possible errors

Code Type Description
400 LANG_CODE_NOT_SUPPORTED The specified language code is not supported.
400 LANG_PACK_INVALID The provided language pack is invalid.

Related pages

Deep links

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.