Skip to content

A telegram bot to notify users when new banks transactions are stored

License

Notifications You must be signed in to change notification settings

davidjulien/banks_frontend_telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Code Coverage

banks_frontend_telegram

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.

Configuration

  1. Open https://telegram.me/botfather on your phone or open a discussion with @BotFather on Telegram
  2. Send '/newbot' and answer questions (name and username of your bot)
  3. Create a local.properties file (from local.properties.sample) and replace YOUR_BOT_TOKEN_FROM_BOTFATHER by the token given by @BotFather
  4. Replace YOUR_SECURITY_CODE by a random string in local.properties

Build and run

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!

Tests

All classes are tested. Expected code coverage is 100%. Only main function is currently excluded.

mvn verify

About

A telegram bot to notify users when new banks transactions are stored

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published