# Telegram Bot Crypto Payments End-to-End Testing

> Prove a Telegram bot's deposits and withdrawals work before real users pay: TON/TRON testnets, BSC and Solana local copies, crypto-payment bots in testnet mode, and a real Stars test payment watched in the database.

Telegram Bot Crypto Payments End-to-End Testing is a paid AI agent skill on Agensi by Claude Workflow Lab, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [Claude Workflow Lab](https://www.agensi.io/creators/creator-1578)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/telegram-bot-crypto-payments-end-to-end-testing
- Tags: testing, web3, api, telegram, mini-app, payments, ton, tron

## What it does

- Proves each deposit is credited exactly once and rescans credit nothing
- Tests TON and TRON on testnets, BSC and Solana on local chain copies
- Watches a real Telegram Stars test payment land in your database
- Runs tests on local copies of BSC and Solana to avoid faucet limits
- Generates real Telegram Stars test invoice links and watches for the payment
- Reports success only when database rows match the expected money flow

## Who it's for

- **Founders building Telegram Mini Apps:** Ensure your bot handles money correctly before you invite real users. Try: "Test the TON deposits and withdrawals for my bot."
- **QA testers for crypto projects:** Automate the boring parts of testing payments across different chains. Try: "Run the payment harness for BSC on a local fork."
- **Developers launching Telegram Stars payments:** Verify that Stars payments are reaching your database without manual checking. Try: "Give me a Stars payment link and watch the database for the result."

## About this skill

Payment bugs in a Telegram bot cost real money: a deposit credited twice, a watcher that never sees a transfer, a withdrawal that pays out by itself. This skill is the end-to-end routine that catches them.

**What is inside (one SKILL.md)**
- Rules that hold in every test: withdrawals stop in a manual review queue and are never paid by code; wallets and signer mnemonics are never regenerated or overwritten; the dev machine uses test money only.
- A testnet run: faucets driven in a visible browser (you only type captchas), then a harness check per network: credited exactly once, two rescans credit nothing, withdrawal waits in the queue.
- Local chain copies for networks whose faucets are closed: an anvil fork of BSC with real stablecoin contracts and a Solana test validator, with the pitfalls (pruned RPCs, fresh-fork players, wrong remembered program ids).
- A real Telegram Stars test payment: an invoice link built on the server, a background watcher on the payments table started before the link is sent, and an exact done rule.
- Known false failures (empty indexer answers, watchers ignoring your own hot wallet, activation fees) so you do not chase ghosts.

**Who it is for:** developers of Telegram bots and Mini Apps that take crypto or Stars.

**Needs:** your bot's code and a harness that can deposit and scan. The skill never sends money to users.

## Requires

- A Telegram bot or Mini App with crypto or Stars payments

Your own test harness that can deposit and scan per network. anvil (Foundry) and solana-test-validator for local chain copies. Your own test harness that can deposit and scan per network. anvil (Foundry) and solana-test-validator for local chain copies.

## Known limitations

Does not automate captchas or passcodes. Some TON testnet indexers might fail; use small mainnet amounts for those tests instead.

## Technical details

This skill uses a test harness to interact with TON, TRON, BSC (via Anvil forks), and Solana (via solana-test-validator). It requires access to a local app environment, database, and signer service. It uses Telegram's create_invoice_link for Stars and monitors the database and service logs for pre_checkout and successful_payment events. Secrets must be managed via a local file or password manager as the skill enforces fixed wallet custody.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Telegram Bot Crypto Payments End-to-End Testing skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific payment problems does this skill help me avoid?

This skill proves that your Telegram bot or Mini App correctly handles money. It verifies that deposits are credited only one time, that rescanning a transaction doesn't add extra funds, and that withdrawals are held for human approval instead of being sent automatically.

### What do I need to have ready before I use this skill?

You need a test environment for your bot or a local copy of the blockchain. You also need a database where the skill can watch payment rows and a secrets file on your server to store keys safely away from your code.

### What kind of report or proof will I receive after a test?

You get a verified report showing a pass or fail result based on actual database checks. For Telegram Stars, you get a specific test payment link and a report confirming the funds landed in your system and updated the user balance.

### Which crypto networks and payment types can I test with this?

The skill works with the TON, TRON, BSC, and Solana blockchains, as well as Telegram Stars. It can use real testnets with faucets or run local copies of chains like BSC and Solana if public faucets are unavailable.

### Are there any things the skill cannot do or refuses to handle?

This skill refuses to work on mainnet networks to avoid spending real money by mistake. It also requires a person to manually type in any captchas or passcodes that appear during the faucet process.

### How do I tell my AI agent to start the testing process?

You can ask your agent to test the payments, verify if a specific deposit was credited, or generate a Stars payment link. You can also tell it to run an end to end test on a specific testnet like TON or TRON.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
