messages.EditChatTitle

class pyrogram.raw.functions.messages.EditChatTitle

Changes chat name and sends a service message on it.

Details:
  • Layer: 223

  • ID: 73783FFD

Parameters:
  • chat_id (int 64-bit) – Chat ID

  • title (str) – New chat name, different from the old one

Returns:

Updates

TL Schema

messages.editChatTitle#73783ffd
chat_id:long
title:string

= Updates

Parameter Tree

EditChatTitle
├── chat_idlong
└── titlestring

Example

await app.invoke(
    EditChatTitle(
        chat_id=0,
        title="text",
    )
)