create_supergroup()

async Client.create_supergroup()

Create a new supergroup.

Note

If you want to create a new basic group, use create_group() instead.

Usable by Users Bots
Parameters:
  • title (str) – The supergroup title.

  • description (str, optional) – The supergroup description.

  • is_forum (bool, optional) – Pass True to create the supergroup with topics enabled.

  • message_auto_delete_time (int, optional) – Time after which messages are automatically deleted, in seconds.

  • for_import (bool, optional) – Pass True if the supergroup is created to import messages from another app.

Returns:

Chat – On success, a chat object is returned.

Example

await app.create_supergroup("Supergroup Title", "Supergroup Description")