Open-Source MIT · Self-Hosted Telegram Bot

Split shared expenses right inside Telegram.

A self-hosted Tricount-style assistant built on Laravel and Laravel AI SDK. Host it with Docker or PHP for house bills, trips, and dinners — scan receipts, split by shares or exact amounts, convert currencies, schedule recurring bills, export CSVs, and notify members automatically.

MIT License · Private invite-only access · Full control on your own server
Example chat output Casa
Supermarket receipt photo · €42.30
Item              Qty      Total
---------------------------------
Barilla Pasta      2x      €3.20
Olive Oil          1x     €12.90
Parmigiano         1x     €26.20
---------------------------------
Giulia -> Marco           €14.10
Example split across 3 members · Saved items under /receipt
Laravel 13
Framework & AI SDK
Docker Ready
App, worker & scheduler
Invite-Only
Private isolated groups
Multi-FX
Custom splits & CSV
EN / IT
Per-chat localization

Built around real group habits

Everything lives in one Telegram thread — clean plain-text cards, interactive buttons, and exact cent math.

01

Receipt scanning with line items

Send a photo of a supermarket or restaurant bill. Individual items and prices stay saved under /receipt so anyone can check who paid for what.

02

Natural chat, voice notes & replies

Type "Luca paid 45 euros for dinner", record a quick audio message, or reply directly to an old receipt card to fix amounts or ask monthly totals.

03

Custom splits & minimal transfers

Split equally, select participants (--for), assign weighted shares (--shares), enter exact amounts (--exact), or toggle people interactively via Edit split.

04

Multi-currency auto-conversion

Log expenses in foreign currencies like 50 USD or GBP during trips and convert live to the group base currency while keeping original amounts and FX rates.

05

Recurring expenses & CSV export

Automate rent, bills, and subscriptions with /recurring (daily, weekly, monthly, yearly) and download UTF-8 expenses and balances CSVs anytime via /export.

06

Clean interactive Telegram UI

Readable plain-text summaries without noisy code boxes, interactive button lists with dates, and pagination that stays on your current page.

07

Member notifications & reminders

Automatic alerts in each member's language on new expenses or settlements, payment reminders from /report, direct /notify messages, and per-type mute toggles.

08

Private, queue-ready self-hosting

Phone-verified CLI Master bootstrap, invite-only access with group isolation, update_id deduplication, async webhook queue, and ready-to-run Docker Compose.

Command Reference

Use interactive menus with /menu, keep the persistent /keyboard bar pinned, or run slash commands.

Member Commands
/menu Open the interactive inline menu
/keyboard Pin the bottom quick-action bar
/expense <amt> [CUR] <desc> Log an expense (--for, --shares, --exact)
/expenses Interactive expenses list preserving page
/receipt <id> Inspect saved receipt items and splits
/report Group balances and minimal transfer list
/settle [person] Settle a balance interactively or directly
/recurring [add|pause|del] Manage scheduled recurring expenses
/export [expenses|report] Export group expenses and balances as CSV
/remind [person] Send a payment reminder to a member
/notify [target] [msg] Message a group mate or whole group
/notifications Toggle per-category alert preferences
/group [name] Switch default group for this chat
/language [en|it|default] Change language for this chat
Master Administration
/invite [group] [user] Generate a 1-click Telegram invite link
/new_user <name> [tg_id] Pre-create a member profile
/link_user <name> <tg_id> Link a Telegram ID to an existing user
/new_group <name> [curr] Create a new expense group
/rename_group [old] <new> Rename an existing group
/add_member <user> [group] Add a member to a group
/remove_member <user> [group] Remove a member without history
/user [name] Act on behalf of another member
/default_language [en|it] Change global default language

Self-Hosting Quick Start

Deploy the full stack (app, queue worker, and recurring scheduler) in Docker Compose, or run manually with PHP 8.3+:

Docker Compose (Recommended)
git clone https://github.com/ILDaviz/spiccibot.git && cd spiccibot
cp .env.example .env
docker compose up -d --build
docker compose exec app php artisan expenses:make-master --phone="+393331234567" "Your Name"
docker compose exec app php artisan telegram:sync-commands
Manual PHP Installation
composer install && cp .env.example .env
php artisan key:generate && php artisan migrate
php artisan expenses:make-master --phone="+393331234567" "Your Name"
php artisan telegram:sync-commands
php artisan telegram:poll
Example webhook endpoint: POST https://your-domain.com/api/telegram/webhook