A Telegram bot to create transactions in Firefly III
100K+
A Telegram bot to create transactions in Firefly III
First you'll have to generate a Telegram Bot token through BotFather. Once you generate the token, keep it safe.
docker create \
--name=firefly-bot \
-e TELEGRAM_BOT_TOKEN=<your-bot-token> \
-v </path/to/config>:/config \
vjfalk1/firefly-telegram-bot
You'll need python 3.8 and pip installed
pip install -r requirements.txtexport TELEGRAM_BOT_TOKEN=<your-bot-token>python3 ./src/bot.py/start to initiate setup
/start can also be used to re-run the setup at a later timehttps://firefly.host.com
All you need to do is send a message to the bot with the following format
Amount, Description, Category, Budget, Source account, Destination account
Only the first two values are needed. The rest are optional. The description value is used for destination account as well.
Examples
A simple one -
5, Starbucks
One with all the fields being used -
5, Mocha with an extra shot for Steve, Coffee, Food Budget, UCO Bank, Starbucks
You can skip specfic fields by leaving them empty (except the first two) -
5, Starbucks, , Food Budget, UCO Bank
You can also specify accounts by using their id instead of their name -
5, Mocha with an extra shot for Steve, Coffee, Food Budget, 5, 35
poetry installpoetry shell to activate virtualenvpython src/bot.pyWhy Poetry AND requirements.txt?
I don't want to use poetry inside Docker. It's unnecessary bloat and complexity. So I just generate a requirements.txt anytime I change deps using - poetry export -f requirements.txt > requirements.txt. It can then be used for Docker, or just anyone who wants to use this without having to install (and figure out) poetry.
Content type
Image
Digest
Size
330.8 MB
Last updated
over 5 years ago
docker pull vjfalk1/firefly-telegram-bot