Skip to content

setChatTitle ​

Set the title of a chat. The Bot must have administrator privileges to perform this action.

Request ​

POST /:token/setchattitle

Parameters ​

ParameterTypeRequiredDescription
chat_idInteger/StringYesUnique identifier for the target chat or username
titleStringYesNew chat title, 1-255 characters

Response ​

Returns Boolean true on success.

json
{
  "ok": true,
  "result": true
}

Error Codes ​

CodeDescription
400Bad request parameters, e.g. title is empty or exceeds 255 characters
401Invalid or expired token
403Bot does not have administrator privileges or lacks permission to change chat info