help.getSupportName

Get localized name of the telegram support user

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.getSupportName({
        403: new Api.USER_INVALID({...}),
        }));
    console.log(result); // prints the result
})();

TL schema

help.supportName#8c05f1c9 name:string = help.SupportName;
---functions---
help.getSupportName#d360e72c = help.SupportName;

Parameters

Name

Type

Description

403

USER_INVALID

Invalid user provided

Result

help.SupportName

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

Last updated