Skip to content

Java Telegram bot that users can interact with to get quotes and jokes!

License

Notifications You must be signed in to change notification settings

nc1z/outdated-project-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Simple Bot v3

Simple Bot V3.0

Just a simple Java telegram bot, dockerized & deployed on Render
Explore the docs »

View Demo · Report Bug · Request Feature


About The Project

A simple telegram bot project that users can interact with to get quotes and jokes! Currently in development.

Release & Updates

  • 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.

Example Commands (UPDATED: V3.0)

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

Usage

  1. Clone Repository
  2. Open project in your favorite IDE (IntelliJ, Eclipse etc.)
  3. Build/install maven dependencies
  4. Create a new java class for your bot, and register in main class (See here)
  5. Enter your bot username and key, Created and retrieved from @BotFather on telegram (See here)
  6. Start your application and test it out with the commands available here.

Running Docker Container Locally

  1. Make sure to have a Dockerfile in your project root (See this repository for an example)
  2. Make sure you have Docker and its CLI installed.
  3. Build the docker image
docker build -t dockerImageNameOfYourChoice --build-arg BOT_KEY=YourBotKeyHere --build-arg BOT_USERNAME=YourBotUsernameHere .
  1. Run the image in a container, and port forward to 8080 if you want to create APIs
docker run -p 8080:8080 dockerImageNameYouCreated

Contact

Project Link: https://github.com/nc1z/simple-bot-telegram

(back to top)

Acknowledgments

(back to top)

About

Java Telegram bot that users can interact with to get quotes and jokes!

Topics

Resources

License

Stars

Watchers

Forks