create_community()¶
- Client.create_community()¶
Create a community linked to a channel or supergroup.
Usable by Users Bots- Parameters:
chat_id (
int|str) – The channel or supergroup to link the community to.title (
str) – Community title.about (
str, optional) – Community description.hidden (
bool, optional) – If True, the community is created as hidden.
- Returns:
Updates– On success.- Raises:
ChatAdminRequired – The user is not an admin of the community.
Example
await app.create_community(-100123456789, "My Community")