Do you want to set up your own Telegram bot on a VPS but don’t know where to start? We’ll handle it for you. Setting up a bot may seem daunting, but it doesn’t have to be. With our pre-configured server solution, you can get your Telegram bot up and running quickly — without the complexity of traditional setups or lengthy guides.
After purchasing a VPS with our pre-installed Telegram bot, all you need to do is connect your credentials from BotFather, and you’ll be ready to go. Once you’ve linked your bot to your server, simply send the /start command to your bot on your smartphone, and you’ll immediately see the message “Bot is running”. It’s that simple!
Our system makes the process of deploying a Telegram bot fast and easy. We’ve handled all the technical details, including server configurations and dependencies, so you can focus on what really matters — your bot. Whether you’re a beginner or an experienced user, our solution will help you skip the complex setup and get straight to what you need.
Why Choose Pre-Installed Telegram Bot VPS Hosting?
By choosing our service, you gain full control over your Telegram bot and server. You’re not locked into third-party services. This allows you to manage and scale your bot freely. Plus, you can add new features, tweak settings, and integrate as needed. Your server is also optimized for reliability and performance.
Simplicity, speed, and control — these are the core benefits of our service. With just a few clicks, you can have your bot running and ready to engage with users. It’s the perfect solution for anyone looking to launch a Telegram bot without wasting time or getting bogged down in the technical details.
Quick and Easy Telegram Bot Deployment Solution
Our pre-configured server solution is designed for simplicity and speed. You don’t need to worry about installing dependencies or configuring your server manually. We’ve already done all of that for you. You can focus on customizing your Telegram bot and integrating it with your existing projects. This makes the deployment process quick, easy, and hassle-free.
With just a few simple steps, your bot will be up and running. We’ve streamlined the entire process. Therefore, you don’t need to be an expert to start. Whether you’re new to Telegram bots or have some experience, our solution saves you time and effort.
Step-by-Step Guide for Setting Up Your Telegram Bot with Hosta Blanca
Below in this article, you’ll find a simple and detailed step-by-step guide with a few easy actions that will take just a few minutes.
We’ve broken down the setup process into easy-to-follow steps, so you don’t have to worry about missing anything. Each step takes only a few minutes. As a result, you can start using your bot almost immediately.
The Benefits of Hosting Your Telegram Bot with Us
Hosting your Telegram bot on a VPS offers a variety of advantages, from better performance to complete control. A VPS provides dedicated resources. This allows your bot to scale easily and handle more users as your project grows. Additionally, having a dedicated server ensures that your bot operates smoothly without interruptions from other users.
Moreover, you have the freedom to make any customizations you need, ensuring your bot works exactly the way you want. Whether you need to modify its functionality, add new features, or integrate it with other systems, the VPS solution provides all the flexibility you need.
How to use Terminal (If you know how to connect to a server, you can skip this step)
To open the terminal, follow these steps:
- On Windows:
- Press
Windows + R, type “cmd” or “PowerShell” in the search bar, and pressEnter. - This will open the Command Prompt or PowerShell.
- Press
- On macOS:
- Press
Cmd + Spaceto open Spotlight, type “Terminal” and pressEnter. - This will open the Terminal application.
- Press
- On Linux:
- Press
Ctrl + Alt + T, or search for “Terminal” in your applications menu. - This will open the Terminal.
- Press
Once the terminal is open, you can connect to a server using SSH (Secure Shell). To do this, you need the server’s IP address and a username.
In the terminal, type:
ssh root@server_ip
Replace “root” with your actual username, and “server_ip” with the server’s IP address.
Press Enter. You may be asked to enter the password for your username. Type it in and press Enter again. Note that the password will not appear on the screen as you type, but that’s normal.
Once you’ve entered the correct password, you will be connected to the server, and you can start running commands on it.
Quick Start for Telegram Bot with Hosta Blanca
- Create your bot in Telegram via BotFather:
- Search “BotFather”, send /start → /newbot.
- Give a name and username.
- Copy the API token.
Create your bot on VPS with Name and API token:
Choose the VPS NVMe plan to start working on your Telegram bot. Proceed to checkout. Select Ubuntu 22.04 as the OS (only this OS supports preinstallation). Choose the Telegram bot preinstallation. Complete your purchase. Connect via SSH to your VPS using the terminal (as described above) or noVNC from the Client Area. Continue with the next steps.
- Run: sudo create-telegram-bot
- Enter the bot name (example: MyBot)
- Enter the API token. It’s important to copy and paste the token, as some characters may look similar but differ in essence.
Check if the bot is running:
- Run: sudo list-telegram-bots
- Status should show “Up”. Your bot is already added to the startup.
Test your bot in Telegram:
- Send /start → “Bot is running.”
- Send /status → server stats (CPU, RAM, uptime).
Edit bot messages or commands (optional):
- Edit file: sudo nano /opt/telegram-bots/MyBot/bot.py
- Save changes: Ctrl+O → Enter → Ctrl+X
- Restart bot: sudo docker restart MyBot
Remove bot if needed:
- Run: sudo remove-telegram-bot
- Enter bot name to delete.
Pre-installed Python modules:
aiohappyeyeballs, aiohttp, aioredis, aiosignal, annotated-doc, annotated-types, anyio, async-timeout, attrs, certifi, charset-normalizer, click, fastapi, frozenlist, greenlet, h11, httpcore, httpx, idna loguru, lxml, multidict, numpy, orjson, pandas, pillow, propcache, psutil, pydantic, beautifulsoup4, pydantic_core, python-dateutil, python-dotenv, python-telegram-bot, pytz, redis, requests, six, soupsieve, SQLAlchemy starlette, tenacity, typing_extensions, typing-inspection, ujson, urllib3, uvicorn, wheel, yarl.
Telegram Bot is Up on your VPS
After completing the first two steps, your Telegram bot is already up and running, and you can start editing its file to add new features or modify existing ones. All the necessary Python modules are pre-installed. That allows you to do this with minimal effort and without any additional setup.
By default, port 22 is open for easy setup. After configuration, make sure to keep only the necessary ports open. Use noVNC for access and configuration through your personal dashboard, or apply SSH keys for secure access. Additionally, ensure you use only strong, complex passwords to protect your server.
Pre-configured Settings and Security Enhancements
The container auto-restart feature for bots is already set up. This means that when the VPS is rebooted, the Docker containers running the bots will start automatically without needing any additional configuration.
Telegram Bot Server Firewall Configuration
The firewall (ufw) has been pre-configured to enhance security. By default, only port 22 for SSH access is open, while all other ports are closed. This ensures that no unwanted services are exposed to the internet.
If you want to allow SSH access only from your IP address, follow these steps. Replace <your_ip_address> with your actual IP address. For example, if your IP is 192.168.1.100, the command will be:
sudo ufw allow from 192.168.1.100 to any port 22
Make sure to not use quotes around the IP address.
Steps to secure SSH access:
- Allow SSH access from your IP address:
sudo ufw allow from 192.168.1.100 to any port 22
- Check the current firewall status to see which ports are open:
sudo ufw status
- Deny SSH access from all other IP addresses:
sudo ufw deny 22
- Check the status again to confirm the changes:
sudo ufw status
- Reload the firewall to apply the changes:
sudo ufw reload
- Finally, verify the status one last time to ensure only your IP has access to SSH:
sudo ufw status
After following these steps, only your IP will have SSH access on port 22, and all other IP addresses will be blocked.
Additional Recommendations
It’s recommended to add multiple static IPs for better reliability and convenience, especially if you access your VPS from different locations or devices. This way, you won’t be locked out if your IP changes or if you’re accessing from a different network. For example, you can add another IP by running the command:
sudo ufw allow from 192.168.1.101 to any port 22
For each IP address, you need to enter a separate command. So, if you want to allow access from two IPs, you will need to run two commands like this:
sudo ufw allow from 192.168.1.100 to any port 22
sudo ufw allow from 192.168.1.101 to any port 22
Also, if needed, you can always open port 22 for yourself via noVNC in the VPS control panel. This provides an alternative method to regain access in case you make changes to your SSH settings.
The Hosta Blanca team wishes you a great experience! We hope your server runs smoothly and reliably. If you have any questions or need assistance, feel free to reach out to us. We’re always happy to support you and help in any situation. Good luck with your new server!
Accessing cPanel Best VPS Buy VPS now CDN Cheap VPS Choose Linux Control panel cPanel for free cPanel guide cPanel hosting Custom Email Addresses Database Management Dedicated IP address Free control panels Improve SEO Linux Linux server Linux VPS MySQL database management system Optimize Images RAID 5 SSD Scalability and Flexibility Shared Hosting Use a Content Delivery Network Virtual Private Server VPS Auto installation VPS Hosting VPS hosting provider VPS in Europe VPS OS VPS plans VPS Server VPS server RAM VPS today VPS with backups Web hosting Website Management Website performance Website Using cPanel What is CLI? Windows Server Windows VPS WordPress easy WordPress today WordPress tools
Choose a VPS NVMe Plan and Launch Your Bot Today