setChatTitle

Change the title of a chat.

Parameters

chatId: ID

The identifier of a chat.

title: string

The new title.

Result

void

Syntax

await client.setChatTitle(chatId, title);