Interface CreateCommunity

Creates a new community for the given chat. Returns identifier of the created community. Request type for Tdjson#createCommunity.

interface CreateCommunity {
    @type: "createCommunity";
    chat_id: number;
    is_chat_hidden?: boolean;
    name: string;
}

Properties

@type: "createCommunity"
chat_id: number

Identifier of the chat in the community; only chats with owned bots and owned basic group, supergroup and channel chats are allowed; basic group chats will be automatically upgraded to supergroup chats.

is_chat_hidden?: boolean

Pass true if the chat will be visible only to administrators of the community.

name: string

Name of the new community.