langpack.getStrings
Get strings from a language pack
Example
const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');
const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});
(async function run() {
const result = await client.invoke(new Api.langpack.getStrings({
langPack: 'random string here',
langCode: 'random string here',
keys: ['random string here'],
}));
console.log(result); // prints the result
})();
TL schema
---functions---
langpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector<string> = Vector<LangPackString>;
Parameters
Result
Vector[LangPackString](https://core.telegram.org/type/LangPackString)
Possible errors
Code
Type
Description
400
LANG_PACK_INVALID
The provided language pack is invalid
Can bots use this methd ?
yes
Related pages
Last updated
Was this helpful?