A Telegram bot for processing cryptocurrency payments using the Cryptomus API. This bot handles payment creation, status checking, and database management with a seamless integration of scheduled tasks and user interactions.
- Payment Creation: Generate payment links with unique identifiers.
- Payment Status Check: Automatically checks and updates the status of payments.
- Database Integration: Stores payment details in a database.
- Cron Jobs: Periodically checks payment statuses.
When a user sends the /start
command:
- A payment is created using the Cryptomus API.
- The payment details are stored in the database.
- The bot replies with a payment link.
- A cron job runs every 5 seconds to:
- Fetch incomplete payments from the database.
- Check their status via the Cryptomus API.
- Update the database and notify the user if the payment is complete.