account.UpdatePersonalChannel

class pyrogram.raw.functions.account.UpdatePersonalChannel

Associate (or remove) a personal channel », that will be listed on our personal profile page ».

Details:
  • Layer: 223

  • ID: D94305E0

Parameters:

channel (InputChannel) – The channel, pass inputChannelEmpty to remove it.

Returns:

bool

TL Schema

account.updatePersonalChannel#d94305e0
channel:InputChannel

= Bool

Parameter Tree

UpdatePersonalChannel
└── channelInputChannel
├── InputChannel
│ ├── channel_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

await app.invoke(
    UpdatePersonalChannel(
        channel=await app.resolve_channel(chat_id),
    )
)