Create an open-source Telegram bot that notifies users of new Haveno offers that meet user-defined criteria, such as currency, payment method, and price.
Assistant
User
can you make the bot using aiogram 3?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Creating an open-source Telegram bot that notifies users about new Haveno offers based on user-defined criteria is a feasible project. Here's an outline of how you can build this bot using the haveno-ts library and Telegram's Bot API.
The bot will notify you when new offers matching your criteria are available.
Key Features
Haveno Integration: The bot uses the HavenoClient class to fetch offers from the Haveno daemon.
User Subscriptions: Users can define criteria such as currency, offer type, maximum price, and payment methods.
Polling for Updates: The bot periodically checks for new offers and notifies users if any match their criteria.
Scalable: Supports multiple users with independent subscriptions.
Future Improvements
Database: Store user subscriptions in a database (e.g., SQLite, MongoDB) for persistence.
Webhooks: Replace polling with Haveno's notification system (if available).
Advanced Filtering: Add more parameters like offer size, seller reputation, etc.
User Management: Allow users to unsubscribe or update criteria.
This bot provides a practical use case for the haveno-ts library, combining it with Telegram's Bot API to deliver real-time notifications to users.
Certainly! Below is an implementation of the Haveno Offer Notification bot using aiogram 3, a modern and efficient Python framework for building Telegram bots.
Steps to Build the Bot
1. Set Up the Environment
Make sure you have Python installed, then create a virtual environment and install dependencies: