The BotFather in Telegram
In this short tutorial, I will show you how to keep your Chatbot in Java online for 0,00$/month with your Raspberry Pi 2 or 3.
This one is for all beautiful Telegram addicts.
You can find the JAVA force on Telegram.
If you are a chatbot enthusiast like me, you will want your Chatbot online, but the services are sometimes too expensive or not worth it. So I have the solution to the problem. Choosing to use the incredible Power of the web server with Raspberry Pi 2 or 3.
If you have trouble with the beginning here is my first blog about Raspberry as a web server.
How to make Raspberry Pi 3 your web server.
Requirements:
- Raspberry Pi 2 or 3 with Linux distributed Operation System
- SSH active
- VNC Viewer on your remote device (optional)
- pUTTY (optional)
- Your chatbot project as ready .jar build file in it.
- Positive Energy and creepy smile on your face!(Because way not, we are Rockstars!)
The Goal is: We want to have our Java Project on our Raspberry Pi.
Now when we are ready, we open the Terminal, or we can open pUTTY from Desktop Computer for remote and do the same thing.
My Java Project is in Public, so I will go in the folder and activate my .jar file. (Public/Project/out/artifacts/Project_jar/Project.jar) is the directory by default.
Hase means Bunny auf Deutsch ^^
I will use the Terminal. We are going in the right folder with cd command, because we ARE NOT SO LAZY AND MAINSTREAM to just copy it.
The Command is java-jar Project.jar and the Terminal window must remain opened.
It's possible that you are not receiving the message that your bot started successfully. You need that in your source code. But if it freezes IT'S An excellent SIGN!
TaDaaa
Now It's online just don't close it or reboot your Raspberry, like never. Just kidding, you can always use my tutorial whenever you close the terminal and do it again.
Thank you for reading and as always: Stay awesome, botzillas! ♥
Thanks for this amazing Posts i really like your blog you are doing good work. Keep sharing good blogs and new ideas, features & latest trends in this technology.
ReplyDeleteAI Chatbot
Chatbot Development
RPA Bot
Bank Chatbot
Chatbots in Banking