account.getThemes

Get installed themes

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.account.getThemes({
        format: 'random string here',
        hash: 3632801,
        }));
    console.log(result); // prints the result
})();

TL schema

account.themesNotModified#f41eb622 = account.Themes;
account.themes#7f676421 hash:int themes:Vector<Theme> = account.Themes;
---functions---
account.getThemes#285946f8 format:string hash:int = account.Themes;

Parameters

Name

Type

Description

format

Theme format, a string that identifies the theming engines supported by the client

Result

account.Themes

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

How to fetch results from large lists of objects.

Last updated