Black Fridayweb hosting up to −50% with a free domain, VPS up to −25%, game servers up to −30%, until 27 November. See the offers →

ThunderHosting
EN

Bot hosting

Telegram bot hosting in Switzerland

Run your Telegram bot 24/7 — Bot API webhooks over HTTPS or long polling, deployed straight from Git.

Your language

python-telegram-bot, aiogram, grammY or Telegraf — dependencies are installed automatically.

Deploy on push

Connect your repository; every push updates and restarts the bot. Your token stays in .env.

Always on

Your HTTPS address works for Telegram webhooks out of the box. The free plan is enough for a small bot.

Telegram bot hosting in Switzerland

A Telegram bot needs a process that is always running: one that polls Telegram for new updates, or one that receives them on a webhook. ThunderHosting runs it on our app hosting around the clock, in Lugano (Switzerland), Helsinki, Ashburn (USA) or Singapore, as you choose. Upload your code or connect a Git repository, choose Python, Node.js or Java, and the control panel starts the bot and keeps it running.

For webhooks, Telegram needs a public HTTPS address with a valid certificate. Every app gets one, so you can register it with setWebhook right away. Long polling works too and needs no address at all. Your bot token stays in a .env file next to your code, never in your repository.

Start on the free plan, which is enough for a small bot, and move to a paid plan when your bot grows: more memory and CPU, backup slots and two extra ports.

Notifications and alerts

Send order updates, monitoring alerts, form submissions or build results to a chat or channel the moment they happen.

Customer service and FAQ bots

Answer common questions, collect requests and hand conversations to a person. State lives in files or a SQLite database in your app's folder.

Groups and channels

Welcome new members, enforce rules, schedule posts and run polls in groups and channels that never sleep.

Mini apps and integrations

Serve the backend of a Telegram mini app or connect your own services over the HTTPS address — anything that runs as a normal Python, Node.js or Java process runs here.

Your bot online in four steps

  1. Create the app

    Order the free plan or a paid plan in the control panel and choose Python, Node.js or Java. For the free plan you save a card or PayPal account; it is never charged unless you upgrade.

  2. Add your code

    Upload your files in the browser or over SFTP, or connect a public or private Git repository (private ones with a deploy key or an access token).

  3. Add your token

    Put the token from BotFather in a .env file in the app's folder and read it from there (for example with python-dotenv or dotenv). It stays when you deploy new code.

  4. Webhook or polling

    Listen on the PORT variable and register your app's HTTPS address with setWebhook — or simply use long polling. Start the bot; dependencies are installed automatically, and every push to your branch can redeploy it.

Plans for your bot

The plans of our app hosting: start free and upgrade when your bot grows.

PlanRAMCPUDiskBackup slotsPrice
Free 128 MB128 MB10%1 GB–Free
App 512 MB512 MB50%5 GB1CHF 2.90€2.90 / month
App 1 GB1 GB100%10 GB2CHF 4.90€4.90 / month
App 4 GB4 GB200%40 GB3CHF 12.90€12.90 / month

The free plan is yours as long as you confirm it every 90 days. Paid plans are billed monthly in CHF or EUR.

Which plan does my Telegram bot need?

A small notification or command bot

The free plan with 128 MB of RAM is made for this: a bot that sends alerts, answers commands or manages a small group. Start here and see how it runs.

A busy bot with many chats

A bot in many groups, or one that handles lots of inline queries or file uploads, is better on a paid plan. Start with 512 MB or 1 GB and move up when the console shows you need more.

Mini apps and backends

If your bot serves a Telegram mini app or runs a web backend on its HTTPS address, paid plans add CPU and backup slots so your data is covered too.

Java bots

Bots built with TelegramBots for Java need at least 512 MB, so they start on a paid plan. Python and Node.js bots can start on the free plan.

Telegram Bot API: webhooks over HTTPS

Telegram sends updates through the Bot API: either your process calls getUpdates (long polling) or Telegram POSTs JSON to the webhook URL you register with setWebhook. A webhook needs a public HTTPS endpoint with a valid certificate. Every app on ThunderHosting listens on the PORT variable and has its own HTTPS address, so setWebhook works as soon as the bot is running — no extra reverse proxy.

  • python-telegram-bot (webhook)

    # After the app is running, register the HTTPS URL from the panel: # curl "https://api.telegram.org/bot<token>/setWebhook?url=https://<your-app>.thunderhosting.cloud/" # Your handler reads POST bodies on the path your library expects.

  • aiogram (aiohttp webhook)

    from aiohttp import web from aiogram import Bot, Dispatcher async def on_startup(app): await bot.set_webhook(f"{os.environ['APP_URL']}/webhook") # Listen on PORT; aiogram mounts the webhook route on that server.

  • grammY (Express)

    import express from "express"; const app = express(); bot.callbackQuery(/.*/, ctx => ctx.answerCallbackQuery()); app.use(express.json()); app.use(webhookCallback(bot, "express")); app.listen(process.env.PORT);

How Telegram hosting differs from Discord bot hosting

A Discord bot keeps an outbound connection to Discord's gateway, so it never needs an inbound port. A Telegram bot is driven by the Bot API: long polling pulls updates, or Telegram pushes them to your HTTPS webhook. That is why every Telegram app on our platform gets a certificate-backed URL, while Discord bots mainly use HTTPS for dashboards or slash-command endpoints. Both run on the same app hosting plans in Lugano and the same Git deploy flow.

Libraries and versions

Python 3.11, 3.12 or 3.13 with python-telegram-bot, aiogram or pyTelegramBotAPI; Node.js 20, 22 or 24 with grammY, Telegraf or node-telegram-bot-api; Java 17, 21 or 25 with TelegramBots. The platform runs your bot as a normal process, so any library works. Java needs more memory than the free plan offers: Java bots start on a paid plan.

Questions and answers

Is the Telegram bot hosting really free?

Yes. The free plan costs nothing and has 128 MB of RAM and an HTTPS address. To keep it, you confirm with one click every 90 days; an app that isn't confirmed is paused, and deleted after 30 days paused — we warn you before. One free plan per account and per person.

Webhook or long polling?

Both work. A webhook needs a public HTTPS address: your app has one, with a certificate, so Telegram can deliver updates to it. Long polling needs no address and is the easiest way to start; for busy bots, webhooks use fewer resources.

How much RAM does my bot need?

Most Python and Node.js bots fit the free plan. Bots with many users, large caches or file processing need more: start with 512 MB or 1 GB. Java bots need at least 512 MB. You can move to a bigger plan at any time.

What happens if my bot crashes?

It restarts by itself. The web console shows the output of your bot, so you can see the error, and you can restart it or run commands at fixed times with schedules.

How do I update my bot?

Push to your branch: with the webhook (GitHub, GitLab, Gitea or Forgejo) the app pulls the new code and restarts. Or upload the changed files and restart the bot from the control panel.

Can my bot use a database?

SQLite works out of the box: the database file lives in your app's folder and survives restarts and deploys. Paid plans include backup slots. You can also connect to a database you run elsewhere, for example on one of our VPS.

Where does my bot run?

In the location you choose when you order: our data centre in Lugano, Switzerland, operated by ThunderHosting GmbH, or Helsinki (Finland), Ashburn (USA) or Singapore. Support is by ticket from the control panel.

Which Telegram library can I use?

Any that runs as a normal process. Use python-telegram-bot or aiogram on Python 3.11–3.13; grammY or Telegraf on Node.js 20, 22 or 24; TelegramBots on Java 17, 21 or 25. Dependencies install automatically when you deploy.

Is my bot token safe?

Keep the token from BotFather in a .env file in your app's folder, not in Git — add .env to .gitignore. If it leaks, revoke it with BotFather and issue a new one.

When is a VPS better than app hosting?

If you need custom system packages, multiple local services or root access around the bot, choose a VPS. For a single Telegram or Discord bot with Git deploys and HTTPS, app hosting is simpler and you can start free.