A telegram bot to receive notifications whew new transactions are stored by banks_fetch.
Each time new transactions are discovered in banks_fetch
database, bot sends account current balance and for each transaction a message describing it.
- Open https://telegram.me/botfather on your phone or open a discussion with @BotFather on Telegram
- Send '/newbot' and answer questions (name and username of your bot)
- Create a
local.properties
file (fromlocal.properties.sample
) and replaceYOUR_BOT_TOKEN_FROM_BOTFATHER
by the token given by @BotFather - Replace
YOUR_SECURITY_CODE
by a random string inlocal.properties
Run this command to build a jar including all dependencies
mvn package assembly:single
Launch bot
java -jar target/banks_frontend_telegram-0.1.0-SNAPSHOT-jar-with-dependencies.jar
Init conversation on Telegram
- Open URL https://t.me/YOUR_BOT_USERNAME to start conversation
- Send an init command containing your security code :
/init YOUR_SECURITY_CODE
- Wait for events (new transactions detected)
Don't forget to run banks_fetch
in an other session to fetch data from your banks!
All classes are tested. Expected code coverage is 100%. Only main function is currently excluded.
mvn verify