> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Bot Hosting 24/7: Discord, WhatsApp and Telegram Bots

> Host a Discord, WhatsApp or Telegram bot 24/7 on Square Cloud: isolated containers, auto-restart, real-time logs and deploys from the dashboard, CLI or GitHub.

<Frame>
  <img src="https://squarecloud.app/banners/en/bots.png" alt="Square Cloud Bots service overview" style={{ borderRadius: "0.2rem" }} />
</Frame>

## Why choose Square Cloud?

We are the **largest bot hosting platform in Latin America**, trusted by **80 of the 100 largest Brazilian Discord servers**. A bot lives or dies by its uptime and its latency to the Discord, WhatsApp and Telegram gateways, so every layer of our stack, from the hardware to the network edge, is tuned to keep your process online and responsive 24/7.

<CardGroup cols={2}>
  <Card title="Purpose-built performance" icon="bolt">
    Every bot runs on **enterprise NVMe SSDs** behind **10Gbps** uplinks, in an isolated container with **kernel-enforced CPU and RAM**, so a neighbor's traffic spike never becomes your latency problem.
  </Card>

  <Card title="A complete developer ecosystem" icon="code">
    **CLI**, **JavaScript, Python and Go SDKs**, a **[VS Code extension](/en/vscode-extension/installation)** and **GitHub Actions/Webhooks** for CI/CD. Deploy from your terminal, your editor or a `git push`.
  </Card>

  <Card title="Square Shield + Cloudflare" icon="shield-halved">
    A **Cloudflare-fronted** edge plus **Square Shield** keeps your bot within the platform API rate limits (Discord and others), preventing the bans and cooldowns that take a bot offline.
  </Card>

  <Card title="Instant snapshots" icon="server">
    **One-click restore points** included at no extra cost. Roll back a broken deploy in seconds, with no data loss and no downtime.
  </Card>
</CardGroup>

<Info>
  **Proven at scale:** our reputation was earned running the bots behind some of the busiest communities in Latin America: the kind of sustained, high-event-rate load that quietly exposes weak infrastructure. Yours runs on the same clusters.
</Info>

***

## Supported environments

Build with the platform and language you already use.

### Platforms

Discord, WhatsApp, Telegram, Slack and X have a step-by-step guide with code: pick a card to open it.

<CardGroup cols={4}>
  <Card title="Discord" icon="discord" href="/en/tutorials/bots/discord" />

  <Card title="WhatsApp" icon="whatsapp" href="/en/tutorials/bots/whatsapp" />

  <Card title="Telegram" icon="telegram" href="/en/tutorials/bots/telegram" />

  <Card title="Slack" icon="slack" href="/en/tutorials/bots/slack" />

  <Card title="X (Twitter)" icon="x-twitter" href="/en/tutorials/bots/x" />

  <Card title="Instagram" icon="instagram" />

  <Card title="Facebook" icon="facebook" />

  <Card title="YouTube" icon="youtube" />
</CardGroup>

### Languages

<CardGroup cols={3}>
  <Card title="JavaScript" icon="node-js" href="../articles/getting-started-with-nodejs" />

  <Card title="Bun" icon="bread-slice" href="../articles/getting-started-with-bun" />

  <Card title="Deno" icon="t-rex" href="../articles/getting-started-with-deno" />

  <Card title="Python" icon="python" href="../articles/getting-started-with-python" />

  <Card title="Java" icon="java" href="../articles/getting-started-with-java" />

  <Card title="Rust" icon="rust" href="../articles/getting-started-with-rust" />

  <Card title="Elixir" icon="droplet" href="../articles/getting-started-with-elixir" />

  <Card title="PHP" icon="php" href="../articles/getting-started-with-php" />

  <Card title="Go" icon="golang" href="../articles/getting-started-with-go" />

  <Card title="C#" icon="c" href="../articles/getting-started-with-csharp" />

  <Card title="Ruby" icon="gem" href="../articles/getting-started-with-ruby" />

  <Card title="HTML/CSS" icon="html5" href="../articles/getting-started-with-html" />
</CardGroup>

<Info>
  Most other languages and libraries run out of the box too. See [supported languages and runtimes](/en/runtimes/introduction).
</Info>

***

## Main features

### Infrastructure built for always-on workloads

Each cluster runs on **enterprise NVMe SSDs** with **10Gbps uplinks**, and your bot runs in an isolated, unprivileged container with dedicated CPU and RAM caps. Isolation is what turns "fast on paper" into fast in production: your process is never fighting a noisy neighbor for I/O or CPU, so response times stay low even under sustained event load.

### Square Shield: staying inside the rate limits

Discord, WhatsApp and Telegram ban bots that exceed their gateway and REST rate limits. **Square Shield** sits between your bot and those APIs, monitoring request patterns to keep you within the allowed budget. That is the difference between a bot that scales cleanly and one that gets cooldowned offline at the worst moment.

### Operate with full visibility

<AccordionGroup>
  <Accordion title="One-click snapshots">
    Restore points let you roll back a bad deploy in seconds, with no data loss and no downtime. Pro and Enterprise plans add automatic daily snapshots on top.
  </Accordion>

  <Accordion title="Real-time logs">
    Stream your application's stdout/stderr live to debug in production the moment something misbehaves, without redeploying.
  </Accordion>

  <Accordion title="Live analytics">
    Track CPU, RAM and network consumption in real time from the dashboard, so you can right-size resources and catch regressions before your users do.
  </Accordion>
</AccordionGroup>

### Development tools

Deploy and manage your bot from wherever you work:

<Steps>
  <Step title="Square Cloud CLI">
    Deploy, restart, follow logs and manage your applications straight from the terminal. Start with the [CLI quickstart](/en/cli-reference/quickstart).

    ```bash theme={"system"}
    npm install -g @squarecloud/cli
    squarecloud auth login
    ```
  </Step>

  <Step title="VS Code extension">
    Manage and deploy your applications without leaving your code editor. See how to [install the VS Code extension](/en/vscode-extension/installation).
  </Step>

  <Step title="GitHub">
    Continuous deployment for your bot: [connect your GitHub repository](https://help.squarecloud.app/en-us/article/how-to-connect-your-github-repository-and-deploy-automatically-mr6srt/) and every `push` updates the application automatically, or deploy from a workflow with [GitHub Actions](https://help.squarecloud.app/en-us/article/workflow-github-actions-automated-deploy-ff34mk/).
  </Step>
</Steps>

<Warning>
  Deploying with GitHub Actions needs an [API key](/en/api-reference/authentication) stored in your repository secrets, never in the code.
</Warning>

## How to host my bot?

<Steps>
  <Step title="Add a configuration file" icon="file">
    Create a `squarecloud.app` file at the root of your project. It tells **Square Cloud** which file to run, how much memory to reserve and which runtime to use. The [configuration file guide](/en/getting-started/config-file) explains every field. Add `AUTORESTART=true` so your bot restarts on its own after a crash.
  </Step>

  <Step title="Include your dependencies file" icon="box">
    Keep your dependencies file in the project: `package.json` for Node.js, `requirements.txt` or `pyproject.toml` for Python. Square Cloud installs everything it lists on the server. Leave out built-in modules, such as `fs` in Node.js or `random` in Python, since they come with the language.
  </Step>

  <Step title="Zip the project" icon="file-zip">
    Compress your code, the configuration file and the dependencies file into a `.zip`. Leave out `node_modules`, lockfiles such as `package-lock.json` and other generated files: dependencies are installed on the server, and a smaller upload deploys faster. The CLI and the VS Code extension leave lockfiles out for you. Need pinned versions? Add `!package-lock.json` to your [squarecloud.ignore](/en/getting-started/squarecloud-ignore) file.
  </Step>

  <Step title="Upload your bot" icon="arrow-up">
    Send the `.zip` on the [upload page](https://squarecloud.app/en/dashboard/new). Square Cloud installs the dependencies, sets up the environment from your configuration file and starts your bot.

    <Frame>
      <img src="https://cdn.squarecloud.app/docs/articles/dashboard/uploading.gif" alt="Uploading application to Square Cloud" style={{ borderRadius: "0.2rem" }} />
    </Frame>
  </Step>
</Steps>

## Something went wrong?

<CardGroup cols={2}>
  <Card title="App won't start" icon="triangle-exclamation" href="/en/platform/troubleshooting/app-wont-start">
    Fix a deploy that fails or crashes on boot: missing modules, `INVALID_DEPENDENCY`, a port already in use or not enough RAM.
  </Card>

  <Card title="Discord bot errors" icon="discord" href="/en/platform/troubleshooting/discord-bot-errors">
    Invalid tokens, disallowed intents, Lavalink disconnects and a bot that goes offline after working locally.
  </Card>
</CardGroup>

## Frequently asked questions

<AccordionGroup>
  <Accordion title="How much does it cost to host a Discord bot?">
    We recommend the **Standard** plan, from **R$44.99/month** with 4 GB of RAM and 4 vCPUs, which leaves room for busy servers and traffic spikes. A lighter bot also runs on the **Hobby** plan, from **R$12.49/month**: a bot needs at least 256 MB of RAM. See [Plans and Pricing](/en/platform/plans) for the full comparison.
  </Accordion>

  <Accordion title="Does my bot stay online 24/7?">
    Yes. Your bot runs in an isolated container with dedicated CPU and RAM, and Square Cloud's infrastructure averages **99.99% uptime** across the platform. Set `AUTORESTART=true` in your [configuration file](/en/getting-started/config-file) so the bot also restarts on its own after a crash: it is off by default.
  </Accordion>
</AccordionGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.