create_group()¶
- Client.create_group(title: str, users: int | str | List[int | str], message_auto_delete_time: int = None) Chat¶
Create a new basic group.
Usable by ✅ Users ❌ BotsNote
If you want to create a new supergroup, use
create_supergroup()instead.- Parameters:
title (
str) – The group title.users (
int|str| List ofintorstr) – 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
await app.create_group("Group Title", user_id)