How murolando/autoavitobot works
AutoAvitoBot is a Telegram bot for saving car-search subscriptions and finding matching Avito listings. Users start the bot, can view help and their subscriptions, create or remove subscriptions, then request matching listings with /avito. The main internal layers are command/callback handlers, subscription keyboards and callback data, and SQLite persistence; the Avito handler fetches and filters listings before replying. README documents the Avito capability and commands. The empty Drom handler is not represented as a working integration; unsampled handler behavior is not inferred.
Main entry points: bot.py Bot dispatcher · db.py SQLite subscription store · show_follows.py List subscriptions · new_follow.py Create subscription
Components 15
Bot startup
- Bot dispatcher
bot.py - Start command
app/handlers/start.py - Help command
app/handlers/info.py
Subscription management
- List subscriptions
app/handlers/show_follows.py - Create subscription
app/handlers/new_follow.py - Remove subscription
app/handlers/unfollow.py - Stop command
app/handlers/stop.py - Subscription keyboards
app/keyboards/new_follow_buttons.py - Callback data
app/keyboards/callback_datas.py
Listing search
- Avito search and filtering
app/handlers/avito.py - Avito listings
Configuration and storage
- Token configuration
app/config.py - SQLite subscription store
db.py
Other components
- Telegram user
- Telegram API
Connections 25
- Telegram user → Bot dispatcher: sends commands
README.md - Bot dispatcher → Token configuration: loads token
bot.py - Bot dispatcher → Start command: registers handler
bot.py - Bot dispatcher → Help command: registers handler
bot.py - Bot dispatcher → List subscriptions: registers handler
bot.py - Bot dispatcher → Create subscription: registers handler
bot.py - Bot dispatcher → Remove subscription: registers handler
bot.py - Bot dispatcher → Stop command: registers handler
bot.py - Bot dispatcher → Avito search and filtering: registers handler
bot.py - Start command → SQLite subscription store: checks and adds user
app/handlers/start.py - List subscriptions → SQLite subscription store: reads subscriptions
app/handlers/show_follows.py - List subscriptions → Subscription keyboards: builds reply buttons
app/handlers/show_follows.py - Create subscription → Subscription keyboards: requests choice buttons
app/handlers/new_follow.py - Create subscription → SQLite subscription store: checks and saves
app/handlers/new_follow.py - Subscription keyboards → SQLite subscription store: loads marks and prices
app/keyboards/new_follow_buttons.py - Subscription keyboards → Callback data: encodes button actions
app/keyboards/new_follow_buttons.py - Remove subscription → SQLite subscription store: checks and deletes
app/handlers/unfollow.py - Avito search and filtering → SQLite subscription store: reads subscriptions
app/handlers/avito.py - Avito search and filtering → Avito listings: fetches listings
app/handlers/avito.py - Start command → Telegram API: sends welcome
app/handlers/start.py - Help command → Telegram API: sends help
app/handlers/info.py - List subscriptions → Telegram API: sends subscription list
app/handlers/show_follows.py - Create subscription → Telegram API: sends prompts
app/handlers/new_follow.py - Remove subscription → Telegram API: sends status
app/handlers/unfollow.py - Avito search and filtering → Telegram API: sends matching ads
app/handlers/avito.py