I am not the only person to drive my car. In order to share the costs in the best way with the other driver, we have thought it would be a good idea to have an easy to use Telegram bot that would create a Splitwise expense given how many kilometers the car was driven with.
Here is how it works:
- When filling up the tank, we write to the bot the new price of the fuel.
- At the end of each individual drive, the driver enters how many kilometers were driven
- The bot runs in a Microsoft Azure Function, written in Python
- When the price is updated, the new price is stored in an Airtable database, using the Airtable API.
- This function will call the Splitwise API to create new expense entries.