🎗️How to host Telegram Bot For Lifetime [Free]
✨Here we will use Koyeb.com for hosting our Telegram Bot. You can host any type of bot written in any language using Dockerfile but here we are going to host telegram bot written in python.
⚜️Text Tutorial:
🥢Step 1: Create a file named app.py using this code: https://t.me/HackerFluxChat/1507
🥢Step 2: Add your all Bots files in same directory where your created app.py
🥢Step3: Add these two python module in your requirements.txt file.
gunicorn
Flask
🥢Step4: Now upload your all files including app.py and requirements.txt on GitHub.com .
🥢Step5: Signup on koyeb.com with Email using Gmail Address.
🥢Step6: Click on Create a Web Service and then connect your GitHub account.
🥢Step7: Now Under BuildPack section Enable override Option in Run Command Section.
🥢Step8: Now you need to understand few things.
🥢Step10: Click on Deploy and wait untill it show Service is Healthy.
Your bot is hosted. Now you can check your bot.
I hosted my Reaction Bot just for testing. Try: @AutoReeactionnnnBot
⚜️Here's the repo that is based on it: https://github.com/shreerambhakthhu/reactionbot
💬If you want docker tutorial then tell in comments section.
🎥I taught this to my friend on a stream, here is his tutorial:
🔥Part1: https://t.me/HackerFluxChat/1519
🔥Part2: https://t.me/HackerFluxChat/1520
📝Note: I used otlook, don't use outlook for registration always use gmail with email registration.
This is the complete tutorial on how to host Telegram bot for free and lifetime.
🧊If you need help in any project please comment here: @Ha@H' rel='nofollow'>ckerFluxChat
💀Join Channel: @HackerFlux
✨Here we will use Koyeb.com for hosting our Telegram Bot. You can host any type of bot written in any language using Dockerfile but here we are going to host telegram bot written in python.
⚜️Text Tutorial:
🥢Step 1: Create a file named app.py using this code: https://t.me/HackerFluxChat/1507
🥢Step 2: Add your all Bots files in same directory where your created app.py
🥢Step3: Add these two python module in your requirements.txt file.
gunicorn
Flask
🥢Step4: Now upload your all files including app.py and requirements.txt on GitHub.com .
🥢Step5: Signup on koyeb.com with Email using Gmail Address.
🥢Step6: Click on Create a Web Service and then connect your GitHub account.
🥢Step7: Now Under BuildPack section Enable override Option in Run Command Section.
🥢Step8: Now you need to understand few things.
Here if we add gunicorn app:app command then it will host web service. If we want to host our bot then we need to run our python file like python3 bot.py .🥢Step9: Go to server section and Change Server to Washington.
Basically koyeb and all others website like render provides web service not worker so jow can we run out bot as a worker?
Here you should know that if we want to run two process at the same time then we use & between those command like python a.py & python b.py it will run both python file at the same time.
So we will use the same method the first will host web service (Python Flask Web App) gunicorn app:app and second will host worker like python3 bot.py .
So we will use
gunicorn app:app & python3 bot.py
Enter this as run command.
🥢Step10: Click on Deploy and wait untill it show Service is Healthy.
Your bot is hosted. Now you can check your bot.
I hosted my Reaction Bot just for testing. Try: @AutoReeactionnnnBot
⚜️Here's the repo that is based on it: https://github.com/shreerambhakthhu/reactionbot
💬If you want docker tutorial then tell in comments section.
🎥I taught this to my friend on a stream, here is his tutorial:
🔥Part1: https://t.me/HackerFluxChat/1519
🔥Part2: https://t.me/HackerFluxChat/1520
📝Note: I used otlook, don't use outlook for registration always use gmail with email registration.
This is the complete tutorial on how to host Telegram bot for free and lifetime.
🧊If you need help in any project please comment here: @Ha@H' rel='nofollow'>ckerFluxChat
💀Join Channel: @HackerFlux