0xx9/telegram-agent-kit/telegram-payments
Claude Code and agent skill by 0xx9/telegram-agent-kit
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Implement Telegram Bot payments including Stars, invoices, pre_checkout_query, and successful_payment handlers. Use when adding paid features, donations, or digital goods to a bot.
Install
npx vskill@latest install 0xx9/telegram-agent-kit/telegram-paymentsSKILL.md
The same SKILL.md was published earlier as 0xx9/telegram-agent-kit/telegram-payments.
Telegram Payments
Telegram supports Telegram Stars (XTR) and traditional provider-based payments.
Payment flow (required order)
- Bot sends invoice (
send_invoiceorsendInvoice) - User opens payment UI
- Bot receives `pre_checkout_query` — must answer within ~10 seconds
- On success, bot receives `successful_payment` message
- Deliver goods only after
successful_payment, never after pre-checkout alone
Stars (recommended for digital goods)
- Currency code:
XTR - Provider token: empty string
""for Stars - No external payment provider needed
pre_checkout_query handler (critical)
successful_payment handler
Idempotency rules
- Store
telegram_payment_charge_idbefore granting access - Duplicate
successful_paymentdeliveries must not double-grant - Payload should encode product + user; validate server-side, never trust client
Refunds
- Stars refunds via Bot API
refundStarPayment - Keep audit log of charge IDs
Testing
- Use Telegram test environment when available
- Test: valid pay, rejected pre_checkout, duplicate payment callback, expired payload
Anti-patterns
- Granting access on
pre_checkout_queryalone - Missing timeout handling on pre_checkout (user sees spinner forever)
- Hardcoded prices without server-side validation
- Storing card data (Telegram handles PCI; you never touch cards)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/telegram-payments/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/0xx9/telegram-agent-kit/telegram-payments)