channels.SetMainProfileTab

class pyrogram.raw.functions.channels.SetMainProfileTab

Changes the main profile tab of a channel, see here » for more info.

Details:
  • Layer: 223

  • ID: 3583FCB1

Parameters:
Returns:

bool

TL Schema

channels.setMainProfileTab#3583fcb1
channel:InputChannel
tab:ProfileTab

= Bool

Parameter Tree

SetMainProfileTab
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── tabProfileTab
├── ProfileTabPosts
├── ProfileTabGifts
├── ProfileTabMedia
├── ProfileTabFiles
├── ProfileTabMusic
├── ProfileTabVoice
├── ProfileTabLinks
└── ProfileTabGifs

Example

await app.invoke(
    SetMainProfileTab(
        channel=await app.resolve_channel(chat_id),
        tab=ProfileTabPosts(),
    )
)