Sign inSign up

yoniergomez/discount-notify

By yoniergomez

Updated 21 days ago

Notificacion de descuentos amazon

Image
Developer tools
Web servers
Databases & storage
0

2.6K

yoniergomez/discount-notify repository overview

discount-notify

Telegram bot that monitors Amazon product prices and notifies you when they drop.

Add products via the bot or CLI, and receive instant Telegram messages whenever a discount exceeds your configured threshold.

Quick Start

1. Create your .env file:

TELEGRAM_TOKEN=your_bot_token
TELEGRAM_CHAT_ID=your_chat_id
CHECK_INTERVAL_MINUTES=60
DISCOUNT_THRESHOLD=3
DB_PATH=/app/data/products.db

2. Create docker-compose.yml:

services:
  discount-notify:
    image: yoniergomez/discount-notify:latest
    container_name: discount-notify
    restart: unless-stopped
    env_file: .env
    volumes:
      - ./data:/app/data

3. Start:

mkdir -p data
docker compose up -d

Environment Variables

VariableDefaultDescription
TELEGRAM_TOKENRequired. Bot token from @BotFather
TELEGRAM_CHAT_IDRequired. Your Telegram chat ID
CHECK_INTERVAL_MINUTES60How often prices are checked
DISCOUNT_THRESHOLD3Minimum % drop to trigger a notification
DB_PATH/app/data/products.dbSQLite database path

Finding Your Chat ID

docker run --rm \
  -e TELEGRAM_TOKEN=your_token \
  yoniergomez/discount-notify:latest \
  python main.py setup-telegram

Bot Commands

CommandDescription
/search <keyword>Search Amazon and add a product
/add <url>Add a product by Amazon URL
/listList tracked products and current prices
/removeRemove a product from tracking
/pause / /resumePause or resume notifications for a product
/targetSet a target price for a product
/statsPrice history chart
/purgeClear the entire database

Supported Architectures

ArchitectureTag
linux/amd64latest
linux/arm64latest

Data Persistence

The SQLite database is stored at /app/data/products.db. Mount a volume at /app/data to persist data across container restarts.

Source

github.com/YonierGomez/discount-notify

Tag summary

Content type

Image

Digest

sha256:13fa3e045

Size

89.3 MB

Last updated

21 days ago

docker pull yoniergomez/discount-notify