- Index channel files for inline search.
- When you going to post file on telegram channel this bot will save that in database, So you and your subscribers can easily search that in inline mode.
- This bot supports document, video and audio file formats with caption.
python3 -m venv env
. ./env/bin/activate
pip install -r requirements.txt
# <Create config.py with variables as given below>
python bot.py
Check sample_info.py
before editing info.py
file
-
BOT_TOKEN
: Create a bot using @BotFather, and get the Telegram API token. -
API_ID
: Get this value from telegram.org -
API_HASH
: Get this value from telegram.org -
CHANNELS
: Username or id of channel. Separate multiple channels by space -
ADMINS
: Username or id of Admin. Separate multiple Admins by space -
DATABASE_URI
: mongoDB URI. Get this value from mongoDB. For more help watch this video -
DATABASE_NAME
: Name of the database in mongoDB. For more help watch this video
COLLECTION_NAME
: Name of the collections. Defaults to Telegram_files. If you going to use same database, then use different collection name for each bot
- First add this bot in channel as a Admin
- Then whenever you post file, bot will save that in database, So you can easily search whenever you want.
channel - Get basic infomation about channels
total - Show total of saved files
logger - Get log file
Contributions are welcome.
Thanks to Pyrogram
Code released under The GNU General Public License.