Skip to content

feat(examples): add Telegram x402 paid-question bot - #19

Open
zhailong8845-art wants to merge 2 commits into
nirium-protocol:mainfrom
zhailong8845-art:codex/telegram-x402-bot
Open

feat(examples): add Telegram x402 paid-question bot#19
zhailong8845-art wants to merge 2 commits into
nirium-protocol:mainfrom
zhailong8845-art:codex/telegram-x402-bot

Conversation

@zhailong8845-art

Copy link
Copy Markdown

Summary

  • add a runnable TypeScript Telegram bot using the Nirium SDK
  • return a machine-readable Stellar x402 challenge for /ask
  • verify and settle submitted signatures before calling the protected Nirium agent path
  • reject missing, invalid, or unsettled payments with a 402-style response
  • include environment template, setup guide, usage example, and mocked facilitator tests

Tests

  • npm test — 4 tests passed
  • npm run typecheck — passed
  • npm run build — passed
  • npm pack --dry-run — passed

The mocked tests do not contact Stellar, Telegram, or spend funds. npm audit reports vulnerabilities in the current transitive Nirium/Stellar dependency tree; no forced dependency upgrade was applied because that would be outside this sample bounty.

Closes #11

Bounty: GrantFox $50 USDC Telegram AI Agent Bot with x402 paywall bounty in #11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Telegram AI bot with x402 micropayments

1 participant