Skip to content

setChatTitle

Sahri Riza Umami edited this page Jun 23, 2018 · 1 revision

Changes the chat title.
Supported only for basic groups, supergroups and channels.
Requires administrator rights in basic groups and the appropriate administrator rights in supergroups and channels.
The title will not be changed until the request to the server has been completed.

setChatTitle(chat_id, title, callback, data)
Field Type Description
chat_id Chat identifier.
title New title of the chat; 1-255 characters.

Example

  • Change chat 1234567890 title to "My New Chat Title".

    changeChatTitle(1234567890, 'My New Chat Title')

    Response:

    {
      ["@type"] = "ok"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally