python3 -m venv env . ./env/bin/activate pip install -r requirements.txt # <Edit info.py with variables as given below> python bot.py
sample_info.py before editing
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 or group. Separate multiple IDs 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
MAX_RESULTS: Maximum limit for inline search results
CACHE_TIME: The maximum amount of time in seconds that the result of the inline query may be cached on the server
channel - Get basic infomation about channels total - Show total of saved files delete - Delete file from database logger - Get log file
|to separate query and file type while searching for specific type of file. For example:
Avengers | video
Contributions are welcome.
Code released under The GNU General Public License.