Telegram bots do not process cryptocurrency payments directly.Coinom securely hosts the payment page and processes the payment. Your bot is responsible only for creating the payment, sending the payment link, and verifying the payment after completion.
Integration Flow
Step 1 — Create a Payment
Create a payment using the standard Create Payment endpoint.trackId uniquely identifies the payment and is required for the next steps.
Step 2 — Send the Payment Link
Generate the Coinom checkout URL using the returnedtrackId.
💳 Complete your payment by clicking the button below.[ Pay with Crypto ]
Step 3 — Receive the Callback
When the customer completes the payment, Coinom sends an HTTP POST request to yourcallbackUrl.
Example
Step 4 — Verify the Payment
Verify the payment using the Verify Payment endpoint.resultequals100- The returned
amountmatches your original order amount
Step 5 — Notify the User
When creating the payment, store the Telegramchat_id together with the generated trackId.
After successful payment verification:
- Find the matching
chat_id - Deliver the purchased product or service
- Send a confirmation message using the Telegram Bot API
Common Use Cases
Telegram Bot Payments can be used for:- Digital products
- Premium subscriptions
- Membership access
- License keys
- Account balance top-ups
- Donations
- Private channel access
- AI bot credits
- Virtual goods
Best Practices
Verify Every Payment
Always verify payments using the Verify Payment endpoint before delivering any product or service.
Compare the Amount
Always compare the verified amount with your original order amount before completing the purchase.
Store Track IDs
Store the generated
trackId together with the Telegram chat_id or your internal order ID.Use HTTPS
Your callback URL should be publicly accessible over HTTPS for production environments.
Do Not Trust Redirects
Never rely on the customer returning to your bot as proof of payment.
Store Reference Numbers
Save the returned
refNumber for future support, reconciliation, and accounting.Integration Summary
- Create a payment.
- Receive the
trackId. - Send the Coinom payment link to the Telegram user.
- Wait for the payment callback.
- Verify the payment.
- Compare the verified amount.
- Deliver the purchased product or service.
- Notify the user.
Related Documentation
Quick Start
Get started with the Coinom API.
Create Payment
Create a new payment.
Verify Payment
Verify completed payments.
Response Codes
View all API response codes.

