channels.EditTitle

class pyrogram.raw.functions.channels.EditTitle

Edit the name of a channel/supergroup

Details:
  • Layer: 223

  • ID: 566DECD0

Parameters:
  • channel (InputChannel) – Channel/supergroup

  • title (str) – New name

Returns:

Updates

TL Schema

channels.editTitle#566decd0
channel:InputChannel
title:string

= Updates

Parameter Tree

EditTitle
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── titlestring

Example

await app.invoke(
    EditTitle(
        channel=await app.resolve_channel(chat_id),
        title="text",
    )
)