Skip to content

Image Reverse Search BotπŸ•΅οΈβ€β™‚οΈπŸ”: A handy Telegram bot for reverse image searches on images, videos, and GIFs, supporting multiple search engines. Unleash the power of reverse searching! πŸš€πŸ€–

License

Notifications You must be signed in to change notification settings

Nachtalb/reverse_image_search_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

256 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Reverse Image Search Bot

A Telegram bot that performs reverse image searches across multiple engines including Google, Yandex, SauceNAO, Trace, and more.

β†’ Usage & Commands

Quick Start

# docker-compose.yml
services:
  ris-bot:
    image: ghcr.io/nachtalb/reverse_image_search_bot:latest
    restart: unless-stopped
    environment:
      TELEGRAM_API_TOKEN: ""
      SAUCENAO_API: ""
      TRACE_API: ""
      UPLOADER_URL: ""
      UPLOADER_PATH: /data/uploads
    volumes:
      - ris-data:/data

volumes:
  ris-data:
docker compose up -d

Configuration

All configuration is done via environment variables.

Required

Variable Description
TELEGRAM_API_TOKEN Bot token from @BotFather
SAUCENAO_API SauceNAO API key
TRACE_API Trace.moe API key
UPLOADER_URL Public base URL for uploaded files
UPLOADER_PATH Local directory to store uploads (when using local uploader)

Optional

Variable Default Description
ADMIN_IDS β€” Comma-separated Telegram user IDs with admin access
ANILIST_TOKEN β€” AniList OAuth token (raises rate limit from 90 to 120 req/min)
WORKERS 4 Number of worker threads
CON_POOL_SIZE WORKERS+4 HTTP connection pool size
CONFIG_DIR ~/.config/reverse_image_search_bot Config/state directory
LOG_FORMAT %(asctime)s - %(name)s - %(levelname)s - %(message)s Python log format string
METRICS_ENABLED true Enable Prometheus metrics endpoint
RIS_METRICS_PORT 9100 Prometheus metrics port

Uploader (SSH)

Set UPLOADER_TYPE=ssh to upload files via SSH instead of storing locally.

Variable Description
UPLOADER_HOST SSH host
UPLOADER_USER SSH username
UPLOADER_PASSWORD SSH password
UPLOADER_UPLOAD_DIR Remote upload directory
UPLOADER_KEY_FILENAME Path to SSH private key (optional)

Webhook Mode

Set MODE_ACTIVE=webhook to use webhooks instead of polling.

Variable Description
MODE_LISTEN Listen address
MODE_PORT Listen port
MODE_URL_PATH URL path for webhook
MODE_WEBHOOK_URL Full public webhook URL

About

Image Reverse Search BotπŸ•΅οΈβ€β™‚οΈπŸ”: A handy Telegram bot for reverse image searches on images, videos, and GIFs, supporting multiple search engines. Unleash the power of reverse searching! πŸš€πŸ€–

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages