telegram-ledger

Convert Telegram free-text messages into finance ledger entries via Draft, Confirm, and Commit workflow.

Updated May 18, 2026
One-click install
npx skills add https://github.com/Jamesxpower/finance_tracker-demo --skill telegram-ledger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: telegram-ledger
Source: https://github.com/Jamesxpower/finance_tracker-demo/tree/main
Command: npx skills add https://github.com/Jamesxpower/finance_tracker-demo --skill telegram-ledger

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you reliably convert free-form Telegram messages into finance records by introducing a Draft -> Confirm -> Commit workflow so entries are only written after explicit approval.

Core Features & Use Cases

  • Telegram Draft Parsing & Staging: Parse INCOME/EXPENSE from user text, create/update a TransactionDraft, and keep partial results safe.
  • Approval Gate with Inline Keyboard: Generate reply summaries and inline keyboard actions for ✅ approve and ❌ reject, plus category/amount/date adjustment actions when needed.
  • Validated Commit to Transactions: Commit only when the Draft is approved and category/type consistency is enforced (Category.transaction_type must match transaction_type).

Quick Start

Ask the AI: "Add the Telegram-ledger Draft -> Confirm -> Commit flow for INCOME/EXPENSE in this Finance Tracker demo, including the required Telegram API endpoints, callback action naming, and minimum pytest coverage for draft creation and approval commit."

Frequently Asked Questions about telegram-ledger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Telegram messages into finance ledger entries with an approval workflow?

You can convert Telegram messages into finance ledger entries using a Draft -> Confirm -> Commit workflow. This parses INCOME/EXPENSE text, creates a TransactionDraft, and only writes the final entry after explicit approval via inline keyboard actions.

How do I enforce category and transaction type consistency when committing ledger drafts?

To enforce category and transaction type consistency during a ledger commit, apply safe commit guards using DraftStatus and PendingAction transitions. The commit only executes when the Draft is approved and Category.transaction_type matches the transaction_type.

Does n8n work with FastAPI to handle Telegram bot callback actions for expense tracking?

Yes, n8n workflows integrate with FastAPI routes to handle Telegram bot callback actions. The system uses a callback action contract to process interactive inline keyboard actions for approving, rejecting, or adjusting category, amount, and date.

How do I validate allowed chat constraints for Telegram text parsing in a finance tracker?

Validating allowed chat constraints for Telegram text parsing requires applying strict validation rules within your FastAPI endpoints. This ensures only messages from authorized chats are processed into TransactionDrafts during the staging phase.

What is the best way to stage partial Telegram expense parsing results safely before user confirmation?

The best way to stage partial parsing results safely is to create or update a TransactionDraft. This keeps partial INCOME/EXPENSE data secure and accessible for category matching and adjustment until the user explicitly confirms or rejects the entry.

Why do I need a draft approval gate instead of writing Telegram expenses directly to a database?

You need a draft approval gate to prevent invalid or misinterpreted free-text data from corrupting your finance ledger. The gate generates reply summaries and inline keyboard actions, ensuring entries are only committed after explicit user review and validation.