set_main_profile_tab()

async Client.set_main_profile_tab()

Change the main profile tab of your account or of a channel.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat. Pass “me” or “self” to change the tab of your own profile.

  • main_profile_tab (ProfileTab) – The tab to open first.

Returns:

bool – On success, True is returned.

Example

await app.set_main_profile_tab("me", enums.ProfileTab.GIFTS)