saga-stars-payment

Manage Telegram Stars payment flows with invoice generation and SQLite logging.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/monkey1sai/jacks_happy_bots --skill saga-stars-payment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: saga-stars-payment
Source: https://github.com/monkey1sai/jacks_happy_bots/tree/main/workspace-cortex/skills/saga-stars-payment
Command: npx skills add https://github.com/monkey1sai/jacks_happy_bots --skill saga-stars-payment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill handles the entire process of charging users for digital services using Telegram Stars, from generating payment invoices to confirming successful transactions and managing potential delivery failures.

Core Features & Use Cases

  • Payment Initiation: Send invoices to users for digital services using Telegram Stars.
  • Transaction Handling: Process pre-checkout queries and confirm successful payments.
  • Record Keeping: Log all payment transactions in a SQLite database for auditing and financial tracking.
  • Saga Pattern Compensation: Implement a distributed transaction compensation mechanism to handle service delivery failures after payment.
  • Use Case: When a user requests an "AI Contract Review" (priced at 50 Stars), this Skill will send them an invoice, verify their payment, record the transaction, and trigger the service delivery. If delivery fails, it initiates a compensation process.

Quick Start

Use the saga-stars-payment skill to send an invoice for 'AI Contract Review' to the user with ID 12345.

Frequently Asked Questions about saga-stars-payment

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

FAQPage Schema
How do I process Telegram Stars payments for digital services?

To process Telegram Stars payments, this Skill sends invoices to users, handles pre-checkout queries, verifies successful transactions, and logs the records in a SQLite database for auditing.

How does the Saga pattern handle payment compensation if service delivery fails?

The Saga pattern handles payment compensation by initiating a distributed transaction rollback when service delivery fails after a Telegram Stars payment, ensuring users are refunded or compensated automatically.

Can I set different pricing tiers for Telegram Stars invoices?

Yes, you can set different pricing tiers for Telegram Stars invoices, allowing you to charge varied amounts such as 50 XTR for an AI Contract Review based on the specific digital service requested.

How do I log Telegram Stars transactions for financial auditing?

You can log Telegram Stars transactions for financial auditing by recording every confirmed payment event directly into a local SQLite database, which captures transaction details for tracking and verification.

Do I need an external database to handle Telegram Stars transaction logging?

No external database is required, as this Skill handles transaction logging internally using SQLite, storing all invoice and payment confirmation records locally for financial tracking and audits.

What happens when a pre-checkout query is received for a Telegram Stars payment?

When a pre-checkout query is received for a Telegram Stars payment, the Skill processes the query to verify the invoice details and prepares the system to confirm the transaction upon user approval.