channels.SetMainProfileTab
- class pyrogram.raw.functions.channels.SetMainProfileTab
Changes the main profile tab of a channel, see here » for more info.
- Details:
Layer:
223ID:
3583FCB1
- Parameters:
channel (
InputChannel) – The channel.tab (
ProfileTab) – The tab to set as main tab.
- Returns:
bool
TL Schema
channels.setMainProfileTab#3583fcb1
channel:InputChannel
tab:ProfileTab
= Bool
Parameter Tree
SetMainProfileTab
├── channel →
InputChannel│ ├──
InputChannelEmpty│ ├──
InputChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ └──
InputChannelFromMessage│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── tab →
ProfileTab├──
ProfileTabPosts├──
ProfileTabGifts├──
ProfileTabMedia├──
ProfileTabFiles├──
ProfileTabMusic├──
ProfileTabVoice├──
ProfileTabLinks└──
ProfileTabGifsExample
await app.invoke(
SetMainProfileTab(
channel=await app.resolve_channel(chat_id),
tab=ProfileTabPosts(),
)
)