An “I’m feeling lucky” bot for images

tg.jpg

Type .jpg in a chat and let the bot reply with a meme. Supports .jpg, .png, and .gif.

輸入訊息⋯

IDEA

Search, reduced to a filename

No need to leave the conversation to search for images. tg.jpg connects to Google, DuckDuckGo, and Bing, plus optional Serper and SerpAPI; with a Serper API key, it takes top priority.

PIPELINE

Fast replies

01

Recognize the filename

Listens for messages ending in .jpg, .png, or .gif.

02

Check search sources

Runs health checks on startup and enables only currently available engines.

03

Reply first

Searches across sources; the first result Telegram can send wins immediately.

tg.jpg replying with a mic drop GIF in Telegram

BUILT WITH RUST

Built with Rust

Rewritten in Rust, with Teloxide for Telegram and Reqwest for search results. Each source is health-checked on startup; failed sources are disabled and the rest are tried in priority order. Includes Docker and Fly.io deployment configuration.

GitHub Repository