Documentation - v0.31.0
    Preparing search index...

    Function createCommunity

    • Create a new community

      Parameters

      • client: ITelegramClient
      • params: {
            about?: string;
            chatId: InputPeerLike;
            hidden?: boolean;
            shouldDispatch?: true;
            title: string;
        }
        • Optionalabout?: string

          Community description

        • chatId: InputPeerLike

          Chat to link to the community

        • Optionalhidden?: boolean

          Whether the community should be hidden

        • OptionalshouldDispatch?: true

          Whether to dispatch the returned updates to the client's update handler.

        • title: string

          Community title

      Returns Promise<Chat>

      Newly created community