All Projects → Mahesh0253 → Media Search Bot

Mahesh0253 / Media Search Bot

Licence: gpl-2.0
Inline bot for channels and groups

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Media Search Bot

Bdreborn
An administration bot based on ➣ https://valtman.name/telegram-cli :)
Stars: ✭ 144 (-4%)
Mutual labels:  bot, telegram
Telegram Forward Bot
Simple Telegram Bot for forwarding messages easily between various related channels and groups.
Stars: ✭ 132 (-12%)
Mutual labels:  bot, telegram
Node Telegram Api
A simple API to create and control Telegram bots
Stars: ✭ 117 (-22%)
Mutual labels:  bot, telegram
Novagram
An Object-Oriented PHP library for Telegram Bots
Stars: ✭ 112 (-25.33%)
Mutual labels:  bot, telegram
Magento Chatbot
Magento Chatbot Integration with Telegram, Messenger, Whatsapp, WeChat, Skype and wit.ai.
Stars: ✭ 149 (-0.67%)
Mutual labels:  bot, telegram
Madelineproto
Async PHP client/server API for the telegram MTProto protocol
Stars: ✭ 1,776 (+1084%)
Mutual labels:  bot, telegram
Vk To Telegram Transfer Bot
Бот, пересылающий сообщения из чатов ВК в Telegram и обратно
Stars: ✭ 143 (-4.67%)
Mutual labels:  bot, telegram
Hackernewsbot
📰 Telegram bot that posts new hot stories from Hacker News to telegram channel
Stars: ✭ 103 (-31.33%)
Mutual labels:  bot, telegram
Telegram Instapy Scheduling
A Telegram bot for scheduling InstaPy
Stars: ✭ 136 (-9.33%)
Mutual labels:  bot, telegram
Telegram.bot
.NET Client for Telegram Bot API
Stars: ✭ 1,964 (+1209.33%)
Mutual labels:  bot, telegram
Awesome Telegram Bot
Manual picked bot of Telegram.
Stars: ✭ 107 (-28.67%)
Mutual labels:  bot, telegram
Canoe
Functional Telegram Bot API for Scala
Stars: ✭ 137 (-8.67%)
Mutual labels:  bot, telegram
Zanzara
Asynchronous PHP Telegram Bot Framework built on top of ReactPHP
Stars: ✭ 107 (-28.67%)
Mutual labels:  bot, telegram
Telegram Clonebot
Simple Bot to clone Google Drive Files (or Folders) to your Team Drive[or Normal Drive]. P.S This is not a Mirror Bot. Enjoy ✌🏻
Stars: ✭ 114 (-24%)
Mutual labels:  bot, telegram
Botogram
Just focus on your bots.
Stars: ✭ 106 (-29.33%)
Mutual labels:  bot, telegram
Moodle Downloader 2
A Moodle downloader that downloads course content fast from Moodle (eg. lecture pdfs)
Stars: ✭ 118 (-21.33%)
Mutual labels:  bot, telegram
Ex gram
Telegram Bot API low level API and framework
Stars: ✭ 103 (-31.33%)
Mutual labels:  bot, telegram
Telegram Bot Github
Allows to you receive GitHub notifications right in the Telegram
Stars: ✭ 103 (-31.33%)
Mutual labels:  bot, telegram
Messaging Apis
Messaging APIs for multi-platform
Stars: ✭ 1,754 (+1069.33%)
Mutual labels:  bot, telegram
Tradingview Webhook Bot
⚙️ Send TradingView alerts to Telegram, Discord, Slack, Twitter and/or Email.
Stars: ✭ 135 (-10%)
Mutual labels:  bot, telegram

Media Search bot

  • Index channel/group files for inline search.
  • When you going to post file on telegram channel/group this bot will save that in database, So you can search that easily in inline mode.
  • Supports document, video and audio file formats with caption.

Installation

Easy Way

Deploy

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

Hard Way

python3 -m venv env
. ./env/bin/activate
pip3 install -r requirements.txt
# Edit info.py with variables as given below
python3 bot.py

Check sample_info.py before editing info.py file

Variables

Required Variables
  • 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
Optional Variables
  • 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
  • USE_CAPTION_FILTER: Whether bot should use captions to improve search results. (True/False)
  • AUTH_USERS: Username or ID of users to give access of inline search. Separate multiple users by space. Leave it empty if you don't want to restrict bot usage.

Admin commands

channel - Get basic infomation about channels
total - Show total of saved files
delete - Delete file from database
logger - Get log file

Tips

  • Run one_time_indexer.py file to save old files in the database that are not indexed yet.
  • You can use | to separate query and file type while searching for specific type of file. For example: Avengers | video
  • If you don't want to create a channel or group, use your chat ID / username as the channel ID. When you send a file to a bot, it will be saved in the database.

Contributions

Contributions are welcome.

Thanks to Pyrogram

License

Code released under The GNU General Public License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].