Self-hosted app·Automation, scraping and trading
Telegram trading bot hosting in the Swiss Alps.
Telegram trading bot hosting in the Swiss Alps: polling vs webhook, Telegram rate limits, key hygiene and a 2 vCPU / 2 GB VPS for $6.99/mo.
- Telegram
- Python
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port10 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $62.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 2 vCPU, 2 GB RAM
- 80 GB NVMe local storage
- 10 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes. A Telegram trading bot runs comfortably on our Cloud VPS Starter: 2 vCPU, 2 GB RAM, 80 GB NVMe and 10 TB of monthly transfer on a 1 Gbps port, in ALP1 in the Swiss Alps, for $6.99 a month with Debian 13. Almost every bot of this kind is one long-running process that polls Telegram and talks to an exchange API, and none of that strains the plan.
The decision that matters most has nothing to do with hardware. It is who may give the bot orders. A bot added to a community group hears every member, and unless the code checks the sender, anyone in the group can type the command that closes your positions. The second constraint comes from Telegram rather than from us: a bot may post only 20 messages a minute into a group, and that limit decides how a signal bot has to be written.
02/06
What a Telegram trading bot is, and who runs one.
The phrase names a pattern, not a product. The first kind is a trading engine that uses Telegram as its remote control: Freqtrade, for instance, reports entries and exits to a chat and accepts commands such as /status, /profit, /stopentry and /forceexit. The second is an alert bot that watches prices, funding rates or wallet activity and posts to a channel. The third is a community bot that answers members' own requests, such as a price lookup, a personal watchlist or an alert when a level is crossed. Admins of trading communities often run all of them behind the same group.
Most are written in Python. python-telegram-bot 22.8, released on 12 June 2026, needs Python 3.10 or later and covers Bot API 10.0; aiogram 3.31.0, released on 26 August 2026, supports Python 3.10 to 3.14 and Bot API 10.3, the version Telegram published on 24 August 2026. Debian 13 ships Python 3.13, so either library installs without a backport. For questions about the code itself, r/TelegramBots and the libraries' own Telegram groups will serve you better than a hosting provider.
This page does not cover the hosted bots where you deposit funds into a wallet that the bot's operator controls. Those are services you use, running on someone else's servers. What follows is about the bot you run yourself, with your own token and your own exchange keys.
Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
A bot receives updates from Telegram in one of two ways, and they exclude each other. Long polling (getUpdates) is an outbound HTTPS request that the bot keeps reissuing, so the server needs no inbound port at all and the firewall can drop everything except SSH. A webhook reverses the direction: Telegram calls you, which requires a public HTTPS endpoint on port 443, 80, 88 or 8443, a valid certificate whose CN matches the domain, and no redirects. For one bot on one VPS we would use polling. If you do set a webhook, pass a secret_token; Telegram sends it back in the X-Telegram-Bot-Api-Secret-Token header of every call, so the bot can reject requests that did not come from the webhook you registered.
CPU and memory are rarely the constraint. An asyncio bot spends nearly all its time waiting on the network, and what grows is whatever you add to it: pandas for indicators, a database, or a trading engine with its own floor. Freqtrade's stated minimum is 2 GB RAM, 2 vCPU and 1 GB of disk, which is Starter exactly.
| Bot | What uses resources | Plan | Per month |
|---|---|---|---|
| Alert or signal bot posting to a channel | Exchange WebSocket, a few API calls a minute | Starter: 2 vCPU / 2 GB / 80 GB NVMe | $6.99 |
| Community bot with per-member watchlists in SQLite | Price polling for the union of all watchlists | Starter | $6.99 |
| Freqtrade with Telegram control, one bot | Indicator computation per candle | Starter, the project's own minimum | $6.99 |
| Several bots, or PostgreSQL and Redis on the same machine | Databases and caches | Standard: 4 vCPU / 4 GB / 160 GB NVMe | $12.99 |
| Freqtrade with FreqAI, or backtests on the same box | Model training, pandas | Pro: 6 vCPU / 8 GB / 320 GB NVMe | $22.99 |
The table is judgement, not a benchmark.
Telegram's limits shape the code more than any plan does. Its FAQ asks bots to stay under one message per second in a single chat, caps a bot at 20 messages per minute in a group, and allows about 30 messages per second for bulk notifications before HTTP 429 errors begin. A bot that posts every fill into the community group hits the group ceiling as soon as more than 20 events land in the same minute, so collect events and post one digest. Private alerts scale better: reaching 3,000 subscribers at 30 a second takes 100 seconds (theoretical). Paid broadcasts raise the ceiling to 1,000 messages a second, but only for bots holding at least 100,000 Stars with at least 100,000 monthly active users, which leaves out most communities.
Transfer will not matter: using up Starter's 10 TB would take an average of about 31 Mbit/s around the clock for a whole month (theoretical: 10 TB × 8 ÷ 2.592 million seconds). The clock does matter. Exchanges reject signed requests whose timestamp is off, and Freqtrade's documentation requires a host clock kept in sync by NTP, so check that timedatectl reports a synchronised clock before the first live order.
04/06
How to deploy it with us.
Order VPS Starter with Debian 13. The account is no-KYC: an email address is enough, and payment is in crypto. Log in with your SSH key, give the bot its own unprivileged user, and keep secrets in a file only that user can read:
apt update && apt install -y python3-venv sqlite3
adduser --system --group --home /opt/tgbot tgbot
runuser -u tgbot -- python3 -m venv /opt/tgbot/venv
runuser -u tgbot -- /opt/tgbot/venv/bin/pip install "python-telegram-bot[rate-limiter]==22.8" ccxt
install -d -m 750 -o root -g tgbot /etc/tgbot
install -m 640 -o root -g tgbot /dev/null /etc/tgbot/bot.env
# bot.env holds TELEGRAM_TOKEN, ADMIN_IDS, EXCHANGE_KEY and EXCHANGE_SECRET, one per lineCreate the exchange key with trading permission and without withdrawal rights, and bind it to the server's IPv4 address. Our Freqtrade VPS page goes through how Binance and Kraken treat IP-restricted keys and per-IP rate limits.
Three habits matter more in a trading bot than in any other kind. Restrict trading commands to your own Telegram user IDs. Drop the backlog at startup, because Telegram keeps undelivered updates for up to 24 hours and a /buy typed while the bot was down would otherwise run hours later, at a different price. And ignore any command older than a few seconds, for the same reason:
import os
from datetime import datetime, timezone
from telegram.ext import AIORateLimiter, Application, CommandHandler, filters
ADMINS = filters.User(user_id=[int(i) for i in os.environ["ADMIN_IDS"].split(",")])
async def buy(update, context):
age = datetime.now(timezone.utc) - update.effective_message.date
if age.total_seconds() > 30:
return # stale command: do nothing
... # place the order through ccxt
app = (Application.builder().token(os.environ["TELEGRAM_TOKEN"])
.rate_limiter(AIORateLimiter()).build())
app.add_handler(CommandHandler("buy", buy, filters=ADMINS))
app.run_polling(drop_pending_updates=True)The rate-limiter extra throttles outgoing calls against Telegram's limits, so a burst of alerts waits in a queue instead of failing. Leave privacy mode on in BotFather: the bot then receives commands addressed to it rather than everything members write, which is less personal data to hold. Do not make the bot a group admin unless it needs admin rights, since admin bots receive every message whatever that setting says. If members ask for their own balances or alerts inside the group, Bot API 10.2 (14 July 2026) added ephemeral messages that only one user and the bot can see; aiogram 3.31.0 supports them, while python-telegram-bot 22.8 stops at Bot API 10.0.
Run the bot under systemd, in /etc/systemd/system/tgbot.service:
[Unit]
Description=Telegram trading bot
Wants=network-online.target
After=network-online.target
[Service]
User=tgbot
Group=tgbot
WorkingDirectory=/opt/tgbot/app
EnvironmentFile=/etc/tgbot/bot.env
ExecStart=/opt/tgbot/venv/bin/python bot.py
Restart=on-failure
RestartSec=10
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
ReadWritePaths=/opt/tgbot/app/data
[Install]
WantedBy=multi-user.targetBefore systemctl enable --now tgbot, stop the copy still running on your laptop or old host. Two processes polling with one token conflict, and Telegram answers one of them with HTTP 409; if the old setup used a webhook, call deleteWebhook first, because getUpdates does not work while a webhook is set. Docker works just as well if you prefer it, and for Freqtrade the project's official compose file is the easier route. For backups, run sqlite3 /opt/tgbot/app/data/bot.db ".backup /opt/tgbot/backup.db" nightly and push the copy with restic to a 250 GB bucket on our object storage, which you reach through the S3 API rather than mounting as a disk.
05/06
Cost.
| Item | Price |
|---|---|
| VPS Starter, monthly | $6.99 |
| Starter, billed yearly (about −25 %) | $62.99 a year |
| Starter with daily VPS backups (+20 %) | $8.39 a month (theoretical) |
| Extra IPv4 address | $2 a month |
| Object storage, 250 GB bucket | $1.99 a month |
| Starter plus a 250 GB bucket | $8.98 a month (theoretical) |
The plan includes one IPv4 address, DDoS protection, full root and the 10 TB transfer allowance; VPS traffic is metered at that figure, not unmetered, which for a bot changes nothing. Payment is in crypto only, in Monero, Bitcoin, Tether (USDT), Ethereum, Litecoin and other coins, with prices and balances in US dollars. Top-ups run from $25 to $5,000, with a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500, and the unused paid part of a top-up is refundable within 14 days. A $100 top-up credits $110, which pays for 15 full months of Starter (theoretical). Every plan and option is on the pricing page.
Two downsides deserve saying plainly. There is no card option, which for most trading communities is no obstacle. And all our servers sit in one facility: we back a 99.9% uptime SLA, but if the bot must survive an outage at ALP1, you need a second provider and a rule for which copy holds the token at any given moment.
06/06
Limits and acceptable use.
Trading bots are an ordinary workload here. Our acceptable use policy lists spam and fraud among its hard limits, and that covers the two things trading communities most often get wrong. A bot that coordinates pump-and-dump calls is a scam with automation attached, and we do not host it. The same goes for mass-messaging tools that drive user accounts to reach people who never started your bot.
Regulation is the larger risk, and it sits with you. Selling signals, or running a bot that trades members' money, can be a regulated activity depending on where you and your members live; in Switzerland, portfolio managers who manage client assets on a commercial basis have needed a FINMA licence since 1 January 2020 under the Financial Institutions Act. The location of the server is not what such rules usually turn on. We rent machines and give no financial or legal advice, and nothing on this page is either. Sanctions work the same way: if your bot holds or swaps crypto for members, check with a lawyer which sanctions rules, Swiss ones included, apply to you as its operator. Exchanges, for their part, decide whom they serve by your residence and KYC file, not by the IP address of the machine that calls them.
On data, the bot's database in ALP1 holds members' Telegram user IDs, watchlists and perhaps wallet addresses, all of it personal data under the revised Federal Act on Data Protection, in force since 1 September 2023. The European Commission confirmed on 15 January 2024 that Switzerland keeps its adequacy status, so data about members in the EU can sit there without additional transfer safeguards. The messages themselves stay on Telegram's servers under Telegram's terms, and Swiss hosting changes nothing about that; it governs your database, your logs and your API keys. Keep what the features need, set a retention period, and read our offshore hosting page for what the jurisdiction does and does not cover.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterRecommendedStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Polling or webhook for a trading bot?
Polling, unless you have a specific reason. It works with every inbound port closed, and a single bot gains nothing from webhooks. They start to pay off when many bots sit behind one HTTPS front end; then use port 443, a valid certificate and a secret_token.
What happens to commands sent while the bot is offline?
Telegram stores undelivered updates for up to 24 hours and delivers them when the bot reconnects. For a trading bot that is a hazard rather than a convenience, which is why the example above starts with drop_pending_updates=True and ignores commands older than 30 seconds.
Can Freqtrade post into my community group?
Yes: set chat_id to the group's ID, and topic_id if the group uses topics. Freqtrade's documentation warns that every group member then gets every command, so set authorized_users to your own user ID, after which other members can only read the bot's messages. A channel that members read but cannot write in is the other way to do it.
Do I need to send ID to order?
No. The account is no-KYC: an email address is enough, and you pay in crypto (how no-KYC hosting works). That reduces what we hold about you; it does not make the bot untraceable, because your Telegram account is registered to a phone number and the exchange has your KYC file.
Will latency from the Alps hurt the bot?
Not for alert bots or candle-based strategies, which act on events measured in seconds or minutes. If your edge depends on milliseconds, you need a machine next to the exchange's matching engine, and ALP1 is not that machine.
When is Starter no longer enough?
When a second bot, a database server or FreqAI joins the first bot. Watch memory with systemctl status tgbot or docker stats for a week, and move the bot to a new Standard (4 GB) if usage sits close to 2 GB.
Sources
Every fact on this page, with its source
Swiss law and authorities
- fedlex.admin.chfedlex.admin.ch
EU and other countries
- European Commission, adequacy decisionsEuropean Commission, adequacy decisions
Industry, providers and software
- michael-prokop.atmichael-prokop.at
Other references
- Telegram, Bots FAQTelegram, Bots FAQ
- Telegram Bot APITelegram Bot API
- python-telegram-bot 22.8 on PyPIpython-telegram-bot 22.8 on PyPI
- aiogram 3.31.0 on PyPIaiogram 3.31.0 on PyPI
- Freqtrade documentation, home pageFreqtrade documentation, home page
- Freqtrade, Telegram usageFreqtrade, Telegram usage
- Freqtrade, InstallationFreqtrade, Installation
- FINMA, supervisory organisationsFINMA, supervisory organisations
- app.switzerland-hosting.comapp.switzerland-hosting.com
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
