How-to guide
Accept crypto via Telegram with AetherPay
Sell digital goods inside Telegram bots and channels — payment links, inline invoices, and instant USDT settlement.
18 November 2026 · 6 min read
Telegram commerce in one flow
Telegram shops and support bots need frictionless pay links, not wallet addresses in chat. AetherPay returns a hosted checkout URL you drop into messages or inline keyboards.
When the customer pays, your bot receives a webhook event and unlocks access, credits, or shipping — whatever your business logic requires.
Create a bot backend
Run a small Node or Python service that talks to the Telegram Bot API and AetherPay REST API. Never embed API keys in the bot source distributed to clients; keep secrets on your server.
Issue payment links from /buy commands
On /buy <sku>, look up price and metadata, call POST /v1/payments with amount and your order_id, and reply with the checkout URL as a deep link or Mini App button.
Store pending orders in Redis or your database keyed by payment id so webhook handlers are deterministic.
Handle webhooks securely
Verify webhook signatures, ignore duplicates, and respond 200 quickly. Credit the user only after payment.paid — never trust a screenshot.
- Whitelist egress IPs if your host requires it.
- Log telegram_user_id in payment metadata for support.
Support channels and refunds
Route support to Telegram @aetherpay or email while you operate in Production. Refund eligible payments from the dashboard; your bot should listen for refund events to revoke access.