Skip to content

createCommunity

Function · TDLib 1.8.67 · d1085f9c

Creates a new community for the given chat. Returns identifier of the created community

createCommunity(
  name: string,
  chat_id: int53,
  is_chat_hidden: Bool
) → CommunityId

name

string

Name of the new community

chat_id

int53

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

Bool

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