Check Create private or public channel Documentation

    Introduction

    The create-channel API endpoint allows clients to Create public or private groups

    Endpoint

    Method: POST
    URL: /create-group

    Request Body

    • folder (String, required): The folder containing the accounts.
    • phones (List, required): The list of phones to be checked
    • title (str, required): Title to be set for Group
    • about (str, required): About to be set for Group
    • private_group (bool, optional): Make private or public group
    • public_usernames (str, required): Provide usernames for group or pass "random" to generate randomly.

    Example Request (1) for private group

    {
        "folder": "active",
        "phones": ["123456789", "123456780"],
        "private_group": true,
    }
    

    Example Request (2) for public group

    {
        "folder": "active",
        "phones": ["123456789", "123456780"],
        "private_group": false,
        "public_usernames": ["specific username", "username2"] | "random"
    }
    

    Example Response

    • Stream Text
    {
        "123456798": 0,
        "2135467890": 100
    }