Skip to content

WoodieDudy/MailgramBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MailgramBot

snippet.png

Telegram Build status

About

MailgramBot is an email Java-based client for Telegram that provides the functionality of receiving emails. If you want to know more about options you can use /help.

How to use

We have ensured that your passwords are kept safe, so you must create an application password in order to log in. See the Google guide for details on how to do this.

You can also use another email service. We're sure that all the popular services also provide this option and have their own guide, we suggest you look it up.

Clone the repo

$ git clone https://github.com/WoodieDudy/MailgramBot
$ cd MailgramBot

Running test with maven

$ mvn clean test

Running locally with maven

# Build
$ mvn -B clean package
# Run 
$ java -jar target/mailgrambot-1.0-SNAPSHOT-jar-with-dependencies.jar src/main/resources/config.properties

Running with docker

$ docker build -t mailgrambot .
$ docker run -it mailgrambot -v /path/to/config:/app/config.properties

Tasks:

  • Implemented a conversation with the user in the console, configured the processing of incorrect commands and switching "states" (states) necessary to determine the currently available tools of the bot.
  • States replaced by command classes for each command. Added base mail functional.
  • Bot moved to Telegram (using Activity Bot) with buttons. Add CI/CD.
  • Added web-app functional for authentication (with an adaptive color scheme).