Changes chat name and sends a service message on it.
messages.statedMessage#d07ae726 message:Message chats:Vector<Chat> users:Vector<User> pts:int seq:int = messages.StatedMessage;
---functions---
messages.editChatTitle#b4bc68b5 chat_id:int title:string = messages.StatedMessage;
Parameters
Name |
Type |
Description |
chat_id |
long |
Chat ID |
title |
string |
New chat name, different from the old one |
Result
Updates
Possible errors
Code |
Type |
Description |
400 |
CHAT_ADMIN_REQUIRED |
You must be an admin in this chat to do this. |
400 |
CHAT_ID_INVALID |
The provided chat id is invalid. |
400 |
CHAT_NOT_MODIFIED |
No changes were made to chat information because the new information you passed is identical to the current information. |
400 |
CHAT_TITLE_EMPTY |
No chat title provided. |
400 |
PEER_ID_INVALID |
The provided peer id is invalid. |
Bots can use this method