mahesh0253 / media-search-bot Goto Github PK
View Code? Open in Web Editor NEWInline bot for channels and groups
License: GNU General Public License v2.0
Inline bot for channels and groups
License: GNU General Public License v2.0
this repo is not working it only shows messgae in bot but not files
Is there any process to remove the buttons from the inline shared files , shared through inline bot(In screenshot ), (2 buttons available below the files).
The buttons are as follows:-
1)search again &
2) Share bot.
As this bot is for private use so these buttons are pretty non-functional for me...
So, what should I do to remove those buttons.??
Any suggestions?
can you please add koyeb support
raceback (most recent call last):
File "D:\school doc\Filter_bot\bot.py", line 10, in
from utils import Media
File "D:\school doc\Filter_bot\utils_init_.py", line 2, in
from .database import Media, save_file, get_search_results
File "D:\school doc\Filter_bot\utils\database.py", line 9, in
from info import DATABASE_URI, DATABASE_NAME, COLLECTION_NAME, USE_CAPTION_FILTER
File "D:\school doc\Filter_bot\info.py", line 9, in
API_ID = int(environ['5424560'])
File "D:\python\lib\os.py", line 679, in getitem
raise KeyError(key) from None
Anyway to run this bot for specific users ?
Because i want to run this bot for private purpose.so anyway to prevent others using it by comamands or env vars ?
Sorry to hijack your project. But do you know a project to search public groups? (Something like searchPublicChats Class, without the need to code something)
Because the search on user application return incomplete results
Is this a bug? If it's not, Can you add such feature please? I mean, if possible. My channel have thousands of files and I need the users to search all the Files present in my channel before I thr deployment of this bot.
when i run /index command I'M GETTING THIS Error: unpack requires a buffer of 263 bytes
here are the heroku logs
2021-07-01T08:11:31.272699+00:00 app[worker.1]: Qtagbot with for Pyrogram v1.2.9 (Layer 128) started on qtagbot.
2021-07-01T08:14:02.330614+00:00 app[worker.1]: 08:14:02 AM - 61 - plugins.userbot - userbot - ERROR - unpack requires a buffer of 263 bytes
2021-07-01T08:14:02.330623+00:00 app[worker.1]: Traceback (most recent call last):
2021-07-01T08:14:02.330625+00:00 app[worker.1]: File "/app/plugins/userbot.py", line 32, in index_files
2021-07-01T08:14:02.330626+00:00 app[worker.1]: async with user_bot:
2021-07-01T08:14:02.330627+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/client.py", line 258, in aenter
2021-07-01T08:14:02.330627+00:00 app[worker.1]: return await self.start()
2021-07-01T08:14:02.330628+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/methods/utilities/start.py", line 53, in start
2021-07-01T08:14:02.330628+00:00 app[worker.1]: is_authorized = await self.connect()
2021-07-01T08:14:02.330628+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/methods/auth/connect.py", line 39, in connect
2021-07-01T08:14:02.330629+00:00 app[worker.1]: await self.load_session()
2021-07-01T08:14:02.330629+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/client.py", line 672, in load_session
2021-07-01T08:14:02.330630+00:00 app[worker.1]: await self.storage.open()
2021-07-01T08:14:02.330630+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/storage/memory_storage.py", line 38, in open
2021-07-01T08:14:02.330631+00:00 app[worker.1]: dc_id, test_mode, auth_key, user_id, is_bot = struct.unpack(
2021-07-01T08:14:02.330631+00:00 app[worker.1]: struct.error: unpack requires a buffer of 263 bytes
(Authorised only) want this.
Bro search again button is not working properly. When we click on that button that will showing my telegram user name or 'null' massage
/index
Error: unpack requires a buffer of 271 bytes
i got this error while indexing channel. any suggestion about this error?
Make it able to Search Files by the Caption
Hi I am trying to create an inline search bot and filled all the required Fields with appropriate informations.
But when I clicked on "Deploy App" at the end of everything, the following following lines popups:-
"Item could not be created:
We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy."
Please guide me, what to do next?
Hello, does this support Chinese?
Put a function so that it reads the old posts from my channel and index
What about adding search support for Text on rhe channel? I started to post with text and buttons and the bot can't search text.
Force users which are not joined the auth group/channel
Please Help to solve this error:
2021-02-05T08:12:23.841256+00:00 app[worker.1]: Traceback (most recent call last):
2021-02-05T08:12:23.841280+00:00 app[worker.1]: File "bot.py", line 12, in <module>
2021-02-05T08:12:23.841355+00:00 app[worker.1]: from utils import Media
2021-02-05T08:12:23.841371+00:00 app[worker.1]: File "/app/utils.py", line 13, in <module>
2021-02-05T08:12:23.841462+00:00 app[worker.1]: instance = Instance(db)
2021-02-05T08:12:23.841483+00:00 app[worker.1]: TypeError: Can't instantiate abstract class Instance with abstract methods is_compatible_with
BRO CAN YOU PLS ADD RAILWAY SUPPORT
AFTER THE WORKER IS STARTED ;
THIS HAPPENS.
PLEASE LET ME KNOW HOW TO FIX IT
Pyrogram v1.0.7, Copyright (C) 2017-2020 Dan https://github.com/delivrance
2021-04-24T23:02:57.889465+00:00 app[worker.1]: Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)
2021-04-24T23:02:57.889466+00:00 app[worker.1]:
2021-04-24T23:02:58.468430+00:00 app[worker.1]: Traceback (most recent call last):
2021-04-24T23:02:58.468440+00:00 app[worker.1]: File "bot.py", line 40, in
2021-04-24T23:02:58.468640+00:00 app[worker.1]: app.run()
2021-04-24T23:02:58.468647+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/methods/utilities/run.py", line 57, in run
2021-04-24T23:02:58.468800+00:00 app[worker.1]: run(self.start())
2021-04-24T23:02:58.468804+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
2021-04-24T23:02:58.469181+00:00 app[worker.1]: return future.result()
2021-04-24T23:02:58.469186+00:00 app[worker.1]: File "bot.py", line 28, in start
2021-04-24T23:02:58.469311+00:00 app[worker.1]: await super().start()
2021-04-24T23:02:58.469336+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/methods/utilities/start.py", line 57, in start
2021-04-24T23:02:58.469486+00:00 app[worker.1]: await self.authorize()
2021-04-24T23:02:58.469489+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/client.py", line 280, in authorize
2021-04-24T23:02:58.469706+00:00 app[worker.1]: return await self.sign_in_bot(self.bot_token)
2021-04-24T23:02:58.469726+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/methods/auth/sign_in_bot.py", line 46, in sign_in_bot
2021-04-24T23:02:58.469856+00:00 app[worker.1]: r = await self.send(
2021-04-24T23:02:58.469876+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/methods/advanced/send.py", line 77, in send
2021-04-24T23:02:58.470018+00:00 app[worker.1]: r = await self.session.send(
2021-04-24T23:02:58.470063+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/session/session.py", line 441, in send
2021-04-24T23:02:58.470358+00:00 app[worker.1]: return await self._send(data, timeout=timeout)
2021-04-24T23:02:58.470405+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/session/session.py", line 411, in _send
2021-04-24T23:02:58.470614+00:00 app[worker.1]: RPCError.raise_it(result, type(data))
2021-04-24T23:02:58.470617+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/pyrogram/errors/rpc_error.py", line 78, in raise_it
2021-04-24T23:02:58.470826+00:00 app[worker.1]: raise getattr(
2021-04-24T23:02:58.470883+00:00 app[worker.1]: pyrogram.errors.exceptions.bad_request_400.ApiIdInvalid: [400 API_ID_INVALID]: The api_id/api_hash combination is invalid (caused by "auth.ImportBotAuthorization")
2021-04-24T23:02:58.735664+00:00 heroku[worker.1]: Process exited with status 1
2021-04-24T23:02:58.921775+00:00 heroku[worker.1]: State changed from up to crashed
Please, I am using a fork of this bot as I wasn't able to deploy it, and I want to remove the search again / share bot button below the file everytime I use the bot, please help.
Media-Search-bot/utils/database.py
Line 36 in adf3a5a
I saw this code, https://github.com/Mahesh0253/Media-Search-bot/blob/master/plugins/commands.py#L76
Steps to reproduce:
Actual Results:
It will reply "File not found in database"
Expected Results:
it should delete the file from the database.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.