Bots Business Api
  1. Admin Panel
Bots Business Api
  • Get started
  • Authentication
    • Sign in
    • Get Telegram login URL
    • Sign up
    • Telegram login
    • Reset Password
  • User account
    • Get user details
    • Update email
    • Update password
    • Get linked telegram accounts
    • Get telegram link url
    • Get users session token
    • Reset api key
    • Log out all device
    • Get iteration usage
    • Turn ON or OFF ads
    • Get payment plan
  • Bots
    • Create Bot
    • Get Bots
    • Get single bot
    • Edit Bot
    • Delete Bot
    • Start or Stop bot
    • Start CSV import
    • CSV import task status
    • Copy Bot
    • Git export
    • Git import
    • Get installed libraries
    • Install Lib
    • Uninstall lib
    • Get error log
    • Clear error logs
  • Commands
    • Folders
      • Create a folder
      • Delete a folder
      • Get all folders
    • Get Commands
    • Get Command Details
    • Create Command
    • Edit Command
    • Delete Command
  • Broadcast
    • Get broadcast tasks
    • Delete Broadcast task
    • Pause broadcast task
    • Resume broadcast task
  • Chats
    • Get chats
    • Block chat
    • Unblock chat
  • Properties
    • Get properties
    • Delete property
  • Libraries
    • Get libraries
  • Admin Panel
    • Get admin panels
      GET
    • Update admin panel values
      PUT
  • Demo Store
    • Get store bots
    • Install demo bot
  • Get cloud plans
    GET
  • Schemas
    • Command Schema
    • User Public
    • Create & Edit Bot
    • Bot
  1. Admin Panel

Update admin panel values

PUT
https://appapi.bots.business/v2/bots/{id}/active_options/{panel_id}
Use this endpoint to update the values of specific fields within an admin panel. This allows you to modify configuration settings and panel properties.

Request

Path Params

Query Params

Body Params application/jsonRequired

Example
{
    "id": 831882252,
    "value": {
        "title": "Example Admin Panel",
        "description": "This panel demonstrates all available field types",
        "icon": "settings",
        "fields": [
            {
                "title": "Bot Name",
                "description": "The display name of your bot",
                "placeholder": "My Awesome Bot",
                "type": "string",
                "icon": "chatbubble",
                "name": "BOT_NAME",
                "value": "My new bot1"
            },
            {
                "title": "API Secret Key",
                "description": "Your secure API key (will be hidden)",
                "placeholder": "Enter your secret key",
                "type": "password",
                "icon": "key",
                "name": "API_SECRET",
                "value": ""
            },
            {
                "title": "Maximum Users",
                "description": "Maximum number of users allowed",
                "placeholder": "1000",
                "type": "integer",
                "icon": "people",
                "name": "MAX_USERS",
                "value": 500
            },
            {
                "title": "Product Price",
                "description": "Price of your product (supports decimals)",
                "placeholder": "19.99",
                "type": "float",
                "icon": "pricetag",
                "name": "PRICE",
                "value": 9.99
            },
            {
                "title": "Bot Active",
                "description": "Enable or disable the bot functionality",
                "placeholder": null,
                "type": "checkbox",
                "icon": "power",
                "name": "IS_ACTIVE",
                "value": true
            },
            {
                "title": "Welcome Message",
                "description": "Message sent to new users",
                "placeholder": "Enter your welcome message here...",
                "type": "text",
                "icon": "document-text",
                "name": "WELCOME_MESSAGE",
                "value": "Hello! Welcome to our bot!"
            }
        ],
        "button_title": "SAVE CONFIGURATION"
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://appapi.bots.business/v2/bots/123/active_options/1234?api_key=UKDZu-c68cubrIbniuE2P_nWj0p5r4IHARNrAV-I' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": 831882252,
    "value": {
        "title": "Example Admin Panel",
        "description": "This panel demonstrates all available field types",
        "icon": "settings",
        "fields": [
            {
                "title": "Bot Name",
                "description": "The display name of your bot",
                "placeholder": "My Awesome Bot",
                "type": "string",
                "icon": "chatbubble",
                "name": "BOT_NAME",
                "value": "My new bot1"
            },
            {
                "title": "API Secret Key",
                "description": "Your secure API key (will be hidden)",
                "placeholder": "Enter your secret key",
                "type": "password",
                "icon": "key",
                "name": "API_SECRET",
                "value": ""
            },
            {
                "title": "Maximum Users",
                "description": "Maximum number of users allowed",
                "placeholder": "1000",
                "type": "integer",
                "icon": "people",
                "name": "MAX_USERS",
                "value": 500
            },
            {
                "title": "Product Price",
                "description": "Price of your product (supports decimals)",
                "placeholder": "19.99",
                "type": "float",
                "icon": "pricetag",
                "name": "PRICE",
                "value": 9.99
            },
            {
                "title": "Bot Active",
                "description": "Enable or disable the bot functionality",
                "placeholder": null,
                "type": "checkbox",
                "icon": "power",
                "name": "IS_ACTIVE",
                "value": true
            },
            {
                "title": "Welcome Message",
                "description": "Message sent to new users",
                "placeholder": "Enter your welcome message here...",
                "type": "text",
                "icon": "document-text",
                "name": "WELCOME_MESSAGE",
                "value": "Hello! Welcome to our bot!"
            }
        ],
        "button_title": "SAVE CONFIGURATION"
    }
}'

Responses

🟢200Success
application/json
You will get updated panel
Body

Example
{
    "id": 831882252,
    "bot_id": 2776468,
    "name": "AdminInfo",
    "created_at": "2025-10-27T09:30:35.787Z",
    "updated_at": "2025-10-27T09:30:35.787Z",
    "size": 1373,
    "value": {
        "title": "Example Admin Panel",
        "description": "This panel demonstrates all available field types",
        "index": 0,
        "icon": "settings",
        "button_title": "SAVE CONFIGURATION",
        "on_saving": {
            "command": "/on-admin-panel-save",
            "user_id": 42470958
        },
        "fields": [
            {
                "name": "BOT_NAME",
                "title": "Bot Name",
                "description": "The display name of your bot",
                "type": "string",
                "placeholder": "My Awesome Bot",
                "value": "My Bot",
                "icon": "chatbubble"
            },
            {
                "name": "API_SECRET",
                "title": "API Secret Key",
                "description": "Your secure API key (will be hidden)",
                "type": "password",
                "placeholder": "Enter your secret key",
                "value": "",
                "icon": "key"
            },
            {
                "name": "MAX_USERS",
                "title": "Maximum Users",
                "description": "Maximum number of users allowed",
                "type": "integer",
                "placeholder": "1000",
                "value": 500,
                "icon": "people"
            },
            {
                "name": "PRICE",
                "title": "Product Price",
                "description": "Price of your product (supports decimals)",
                "type": "float",
                "placeholder": "19.99",
                "value": 9.99,
                "icon": "pricetag"
            },
            {
                "name": "IS_ACTIVE",
                "title": "Bot Active",
                "description": "Enable or disable the bot functionality",
                "type": "checkbox",
                "value": true,
                "icon": "power"
            },
            {
                "name": "WELCOME_MESSAGE",
                "title": "Welcome Message",
                "description": "Message sent to new users",
                "type": "text",
                "placeholder": "Enter your welcome message here...",
                "value": "Hello! Welcome to our bot!",
                "icon": "document-text"
            }
        ]
    },
    "type": "active_option"
}
🟠401
🟠404
Previous
Get admin panels
Next
Get store bots
Built with