help.getConfig
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.help.getConfig({
400: new Api.CONNECTION_API_ID_INVALID({...}),
400: new Api.CONNECTION_APP_VERSION_EMPTY({...}),
400: new Api.CONNECTION_DEVICE_MODEL_EMPTY({...}),
400: new Api.CONNECTION_LANG_PACK_INVALID({...}),
400: new Api.CONNECTION_LAYER_INVALID({...}),
400: new Api.CONNECTION_NOT_INITED({...}),
400: new Api.CONNECTION_SYSTEM_EMPTY({...}),
400: new Api.CONNECTION_SYSTEM_LANG_CODE_EMPTY({...}),
400: new Api.DATA_INVALID({...}),
400: new Api.INPUT_LAYER_INVALID({...}),
400: new Api.MSG_ID_INVALID({...}),
}));
console.log(result); // prints the result
})();TL schema
Parameters
Result
Possible errors
Can bots use this methd ?
yes
Related pages
Last updated