# Code Studio & Web IDE

> Edit multi-file codebases in real-time with syntax highlighting, automatic linting, and zero deployment latency.

**Category:** Bot Studio & Development  
**URL:** https://docs.botlify.cloud/editor  
**Platform:** Botlify Cloud (https://botlify.cloud)  

---

## The In-Browser Cloud IDE

   

Botlify includes a full-featured web code editor located in **Bot Studio → Code Editor**. You can view, create, edit, and organize multiple files right from your browser or mobile device.

   

## Key Studio Features

   
    
- Multi-File Project Support: Create modular projects with helper files (e.g. includes/database.php, handlers/callback.php).

    
- Real-Time Syntax Validation: Before saving, Botlify runs strict PHP syntax checks. If a parse or syntax error is found, it warns you immediately to prevent breaking live production webhooks.

    
- Zero-Restart Hot Reloading: Changes saved to index.php are active immediately on the next incoming Telegram update. No server restarts or redeployment delays required!

   

   

## Standard Starter Template Structure

   
```php

```

  
   

## Platform Auto-Injected System Environment Variables (.env)

   

When you deploy or manage a bot on **Botlify Cloud**, the platform automatically provisions an isolated `.env` file in your bot's root directory. You never need to hardcode sensitive tokens or IDs directly into your PHP scripts.

   
> [!TIP]
> **The 3 Locked Core System Variables**
> Botlify Cloud automatically synchronizes and locks these three variables with the platform database:
>      
>       BOT_TOKEN — The unique Telegram Bot API token issued by @BotFather.
>       ADMIN_CHAT_ID — The numeric Telegram Chat ID of the bot administrator/owner used for /admin access.
>       BOT_USERNAME — The public Telegram username of the bot (without the @ prefix).

   
    
| Variable Name | Sample Value | Platform Behavior & Usage in PHP |
| --- | --- | --- |
| BOT_TOKEN | 7123456789:AAHq_EXAMPLE_TOKEN... | Auto-injected from your BotFather token. Used by bot() helper to dispatch Telegram API requests. |
| ADMIN_CHAT_ID | 123456789 | Auto-injected from your Telegram numeric User ID. Checked on incoming updates to grant /admin and broadcast access. |
| BOT_USERNAME | MySuperBot | Auto-injected from Telegram. Used for dynamic referral links (e.g. https://t.me/MySuperBot?start=ref123). |

   

   

## How to Read System Variables in index.php

   

Use this native, zero-dependency parser at the top of your `index.php`:

   
```php

```
