GetLangPackRequest
Only users can use this request. See code examples.
---functions--- langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference
Returns
| LangPackDifference |
This type can only be an instance of:
| LangPackDifference |
Parameters
| lang_pack | string | |
| lang_code | string |
Known RPC errors
This request can cause 1 known error:
LangPackInvalidError | The provided language pack is invalid. |
You can import these from telethon.errors.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.langpack.GetLangPackRequest(
lang_pack='',
lang_code='en'
))
print(result.stringify())