goyban f5b16fab84 Bump VERSION to 1.0.2 for the list-truncation fix
VERSION had been left at 1.0.0 while the registry already carried 1.0.1, so
push.sh (which defaults to the VERSION file) would have rebuilt an existing
tag. This realigns the file with what is actually published.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-01 13:02:19 +00:00
2026-07-26 20:06:40 +02:00
2026-04-24 23:04:37 +00:00
2026-07-26 18:14:24 +02:00

Memes Bot

A personal Telegram inline bot to store and search media (photos, GIFs, videos, voice) by keywords.

فارسی


Requirements

Setup

1. Create the bot in BotFather

  • /newbot → get your token
  • /setinline → enable inline mode, set a placeholder (e.g. Search memes...)

2. Find your Telegram user ID

You need your numeric Telegram user ID to whitelist yourself.

  • Easiest: forward any message to @userinfobot — it replies with your ID
  • Alternative: open Telegram Web, click your profile, the number in the URL is your ID
  • For multiple users: repeat for each person and separate IDs with commas

3. Clone and configure

git clone https://git.goyban.com/goyban/memes_bot
cd memes_bot
cp .env.example .env

Edit .env:

BOT_TOKEN=your_telegram_bot_token_here
ALLOWED_USERS=123456789,987654321

4. Run

docker compose up -d --build

The database will be saved in ./bot_db/media.db.

Usage

Adding media — send the bot a photo, GIF, video, or voice message, then type keywords when prompted (comma-separated or one per message), then /done.

Searching inline — in any chat type @yourbotusername keyword to search and send.

Telegram suggests these commands as you type /, with a short description beside each suggestion.

Commands

Command Description
/start Start the bot and show usage instructions
/menu Show the available commands
/list Show all saved media
/edit [search] Select a meme and edit its keywords (admin only)
/delete <id> Remove an entry (get ID from /list; admin only)
/cancel Cancel current add operation

Moving to another server

The only files you need to transfer are:

  • .env
  • bot_db/media.db
S
Description
No description provided
Readme 186 KiB
Languages
Python 97.5%
Shell 1.7%
Dockerfile 0.8%