langpack.getDifference
Get new strings in languagepack
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.getDifference({
langPack: 'random string here',
langCode: 'random string here',
fromVersion: 5301681,
}));
console.log(result); // prints the result
})();
TL schema
langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector<LangPackString> = LangPackDifference;
---functions---
langpack.getDifference#cd984aa5 lang_pack:string lang_code:string from_version:int = LangPackDifference;
Parameters
Result
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?