Mahesh0253 / Media-Search-bot

Inline bot for channels and groups
GNU General Public License v2.0
555 stars 1.15k forks source link
bot inline-search telegram

Media Search bot

Installation

Watch this video to create bot - https://youtu.be/dsuTn4qV2GA

Easy Way

Deploy

Hard Way

# Create virtual environment
python3 -m venv env

# Activate virtual environment
env\Scripts\activate.bat # For Windows
source env/bin/activate # For Linux or MacOS

# Install Packages
pip3 install -r requirements.txt

# Edit info.py with variables as given below then run bot
python3 bot.py

Check sample_info.py before editing info.py file

Docker

docker run -d \
    -e BOT_TOKEN="123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11" \
    -e API_ID='12345' \
    -e API_HASH='0123456789abcdef0123456789abcdef' \
    -e CHANNELS='-10012345678' \
    -e ADMINS='123456789' \
    -e DATABASE_URI="mongodb+srv://...mongodb.net/Database?retryWrites=true&w=majority" \
    -e DATABASE_NAME=databasename \
    --restart on-failure \
    --name mediasearchbot botxtg/media-search-bot

You can also run with env file like below,

docker run -d \ 
     --env-file .env \
     --restart on-failure \
     --name mediasearchbot botxtg/media-search-bot

Variables

Required Variables

Optional Variables

Tips

Contributions

Contributions are welcome.

Thanks to Pyrogram

Support

Update Channel and Support Group

License

Code released under The GNU General Public License.