MediaBuddy

A Telegram Inline media searching robot without any database.

About

mediaBuddy is an inline media searching robot. If you have so many movie channels and you are searching for a 
particular movie in each and everywhere and spending your valuable time in this process, the bot is yours.
The bot can search inline in your movie chats and also can provide a link to your queried one, thus you can 
easily access the required media. Your perfect media buddy.
Working

    ? When bot is deployed with a user session string, it will find all the groups and channels of the user.
    ? From the above, it sorts the movies channels and groups and make a master list for searching your queries.
    ? When you search a keyword as inline, the bot will search the same in the master list and gives the output.
    ? The output will be the file name with a hyper link to the original file.
    ? By clicking, you can easily migrate to the file location thus saves your valuable time in searching.
What to do

    ? Make an inline bot with Telegram Botfather.
    ? Deploy the bot local pc, VPS or in heroku.
    ? Join some movie channels.
    ? Search movies inline.
Mandatory Variables

? API_HASH        -   Your API Hash, get it from my.telegram.org
? APP_ID          -   Your APP ID, get it from my.telegram.org 
? BOT_TOKEN       -   Your bot token, get it from @BotFather
? TG_USER_SESSION -   Your session string (Generate for 'User', dont use any bot session)
Generate User Session

Click HERE to generate a user session string.

@BotFather Commands

start - Check Alive                     Usage: /start
view   - Vire the currents chats        Usage: /viewchats
update - Add a chat to the list         Usage: /update -100xxxxxxxxxx
delete - Remove chats from the list     Usage: /remove -100xxxxxxxxxx
Deploy Locally

  • Create a config.py file with the Mandatory Variables mentioned above.
  • Refer sample_config.py for creating config.py file. don’t miss any parameters
  • Open terminal and run the following commands.
  • git clone https://github.com/m4mallu/mediaBuddy
  • cd mediaBuddy
  • Save the config.py file in side the current working directory cloned.
  • Run the below commands in the same terminal window.

virtualenv -p python3 venv
. ./venv/bin/activate
pip3 install -r requirements.txt
python3 main.py
Deploy Heroku



Limitations

  • Presently document type is only supported.
  • Chance for getting heavy FloodWaits in searchMessages in case of massive number of media chats.
Developer

GPL3
Renjit Mangal  | 
Update Channel

Credits

Pyrogram

Licence


GPL3


GPL3

GitHub

View Github