Just a simple Java telegram bot, dockerized & deployed on Render
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
A simple telegram bot project that users can interact with to get quotes and jokes! Currently in development.
- V3.0 - Bot is now able to respond with jokes or quotes.
- V2.0 - Bot is live and able to respond with basic greetings & date.
- V1.0 - Testing Phase. Undeployed.
Simple bot uses keywords to detect and provde a response accordingly. Some examples below:
Prefixed with /bot:
- hello
- what day is it?
- tell me a joke
- give me a quote
- Clone Repository
- Open project in your favorite IDE (IntelliJ, Eclipse etc.)
- Build/install maven dependencies
- Create a new java class for your bot, and register in main class (See here)
- Enter your bot username and key, Created and retrieved from @BotFather on telegram (See here)
- Start your application and test it out with the commands available here.
- Make sure to have a Dockerfile in your project root (See this repository for an example)
- Make sure you have Docker and its CLI installed.
- Build the docker image
docker build -t dockerImageNameOfYourChoice --build-arg BOT_KEY=YourBotKeyHere --build-arg BOT_USERNAME=YourBotUsernameHere .
- Run the image in a container, and port forward to 8080 if you want to create APIs
docker run -p 8080:8080 dockerImageNameYouCreated
Project Link: https://github.com/nc1z/simple-bot-telegram