messages.editChatTitle
Chanages chat name and sends a service message on it.
Example
TL schema
Parameters
Name
Type
Description
chat_id
Chat ID
title
New chat name, different from the old one
Result
Returns a messages.StatedMessage object containing a service message sent during an action.
Possible errors
Code
Type
Description
400
CHAT_ID_INVALID
The provided chat id is invalid
400
CHAT_NOT_MODIFIED
The pinned message wasn't modified
400
CHAT_TITLE_EMPTY
No chat title provided
400
PEER_ID_INVALID
The provided peer id is invalid
Can bots use this methd ?
yes
Related pages
Last updated
Was this helpful?