How scriptersaurav/telegram-movie-search-bot works
Media Search bot indexes Telegram documents, videos, and audio into MongoDB, then serves paginated inline searches with optional caption, file-type, and access filters. The main workflow runs from channel posts through catalog persistence to inline results; admins can also backfill history and manage the catalog. The graph includes documented capabilities whose implementation is only partly sampled; those unsampled relationships are not inferred.
Main entry points: database.py Media catalog · info.py Bot settings · bot.py Bot runtime · inline.py Inline search
Components 13
Runtime and settings
- Bot settings
info.py - Bot runtime
bot.py
Indexing
- Channel ingestion
plugins/channel.py - Admin history indexing
plugins/userbot.py - One-time indexing
one_time_indexer.py
Catalog and search
- Media catalog
utils/database.py - File ID helpers
utils/helpers.py
Telegram features
- Inline search
plugins/inline.py - Bot commands
plugins/commands.py
Other components
- Telegram users
- Bot admins
- Telegram channels
- Telegram service
Connections 22
- Bot runtime → Bot settings: reads settings
bot.py - Bot runtime → Telegram service: starts client
bot.py - Bot runtime → Media catalog: ensures indexes
bot.py - Bot runtime → Channel ingestion: loads plugins
bot.py - Telegram channels → Channel ingestion: posts media
plugins/channel.py - Channel ingestion → Media catalog: saves media
plugins/channel.py - Bot admins → Admin history indexing: requests indexing
plugins/userbot.py - Admin history indexing → Telegram service: reads history
plugins/userbot.py - Admin history indexing → Media catalog: saves media
plugins/userbot.py - One-time indexing → Bot settings: reads settings
one_time_indexer.py - One-time indexing → Telegram service: reads history
one_time_indexer.py - One-time indexing → Media catalog: saves media
one_time_indexer.py - Media catalog → Bot settings: reads database config
utils/database.py - Media catalog → File ID helpers: normalizes file IDs
utils/database.py - Telegram users → Inline search: submits queries
plugins/inline.py - Inline search → Media catalog: fetches matches
plugins/inline.py - Inline search → Telegram service: checks membership
plugins/inline.py - Inline search → Bot settings: reads access settings
plugins/inline.py - Bot admins → Bot commands: runs commands
plugins/commands.py - Bot commands → Media catalog: counts or deletes
plugins/commands.py - Bot commands → Telegram service: looks up channels
plugins/commands.py - Bot commands → Bot settings: reads command settings
plugins/commands.py