account.SetMainProfileTab

class pyrogram.raw.functions.account.SetMainProfileTab

Changes the main profile tab of the current user, see here » for more info.

Details:
  • Layer: 223

  • ID: 5DEE78B0

Parameters:

tab (ProfileTab) – The tab to set as main tab.

Returns:

bool

TL Schema

account.setMainProfileTab#5dee78b0
tab:ProfileTab

= Bool

Parameter Tree

SetMainProfileTab
└── tabProfileTab
├── ProfileTabPosts
├── ProfileTabGifts
├── ProfileTabMedia
├── ProfileTabFiles
├── ProfileTabMusic
├── ProfileTabVoice
├── ProfileTabLinks
└── ProfileTabGifs

Example

await app.invoke(
    SetMainProfileTab(
        tab=ProfileTabPosts(),
    )
)