create_group()

Client.create_group()

Create a new basic group.

Note

If you want to create a new supergroup, use create_supergroup() instead.

Parameters
  • title (str) – The group title.

  • users (int | str | List of int or str) – Users to create a chat with. You must pass at least one user using their IDs (int), usernames (str) or phone numbers (str). Multiple users can be invited by passing a list of IDs, usernames or phone numbers.

Returns

Chat – On success, a chat object is returned.

Example

app.create_group("Group Title", user_id)