create_group()#
- Client.create_group()#
Create a new basic group.
Note
If you want to create a new supergroup, use
create_supergroup()
instead.Usable by Users Bots- Parameters:
title (
str
) – The group title.users (
int
|str
| List ofint
orstr
) – 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)