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
await app.set_main_profile_tab("me", main_profile_tab=enums.ProfileTab.POSTS) await app.set_main_profile_tab("irenogram_news", main_profile_tab=enums.ProfileTab.GIFTS)