set_main_profile_tab()¶
- Client.set_main_profile_tab()¶
Changes the main profile tab of the user or channel.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat. For your personal cloud (Saved Messages) you can simply use “me” or “self”.main_profile_tab (
ProfileTab) – The new value of the main profile tab.
- Returns:
bool– On success, True is returned.
Example
# Set user main profile tab to "Posts" await app.set_main_profile_tab("me", main_profile_tab=enums.ProfileTab.POSTS) # Set channel main profile tab to "Gifts" await app.set_main_profile_tab("kurigram_news", main_profile_tab=enums.ProfileTab.GIFTS)