vasusen-code / saverestrictedcontentbot Goto Github PK
View Code? Open in Web Editor NEWStable telegram bot to save Restricted content with custom thumbnail support.
License: GNU Affero General Public License v3.0
Stable telegram bot to save Restricted content with custom thumbnail support.
License: GNU Affero General Public License v3.0
2022-01-26T06:00:41.368904+00:00 app[Drone.1]: [ERROR/2022-01-26 06:00:41,367] pyrogram.dispatcher: expected string or bytes-like object
2022-01-26T06:00:41.368921+00:00 app[Drone.1]: Traceback (most recent call last):
2022-01-26T06:00:41.368922+00:00 app[Drone.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pyrogram/dispatcher.py", line 222, in handler_worker
2022-01-26T06:00:41.368922+00:00 app[Drone.1]: await handler.callback(self.client, *args)
2022-01-26T06:00:41.368923+00:00 app[Drone.1]: File "/app/main/plugins/main.py", line 106, in clone
2022-01-26T06:00:41.368924+00:00 app[Drone.1]: link = get_link(event.text)
2022-01-26T06:00:41.368925+00:00 app[Drone.1]: File "/app/main/plugins/helpers.py", line 26, in get_link
2022-01-26T06:00:41.368925+00:00 app[Drone.1]: url = re.findall(regex,string)
2022-01-26T06:00:41.368926+00:00 app[Drone.1]: File "/app/.heroku/python/lib/python3.9/re.py", line 241, in findall
2022-01-26T06:00:41.368926+00:00 app[Drone.1]: return _compile(pattern, flags).findall(string)
2022-01-26T06:00:41.368927+00:00 app[Drone.1]: TypeError: expected string or bytes-like object
apt update
apt install ffmpeg git python3-pip
git clone your_repo_link
cd saverestrictedcontentbot or cd your_repo_name
pip3 install -r requirements.txt
python3 -m main
Sir when I use batch command it gives same files multiple times also when I updated it shows in logs
[ERROR/2022-12-30 17:48:44,284] telethon.client.updates: Unhandled exception on _batch
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/telethon/client/updates.py", line 467, in _dispatch_update
await callback(event)
File "main/plugins/batch.py", line 71, in _batch
await conv.send_message(r)
File "/usr/local/lib/python3.9/site-packages/telethon/tl/custom/conversation.py", line 88, in send_message
sent = await self._client.send_message(
File "/usr/local/lib/python3.9/site-packages/telethon/client/messages.py", line 855, in send_message
raise ValueError(
ValueError: The message cannot be empty unless a file is provided
Solved
nothing
[WARNING/2023-01-23 04:51:50,927] pyrogram.types.messages_and_media.message: Empty messages cannot be copied.
[ERROR/2023-01-23 04:51:58,502] telethon.client.updates: Unhandled exception on sett
Traceback (most recent call last):
File "/usr/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
return fut.result()
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/telethon/client/updates.py", line 467, in _dispatch_update
await callback(event)
File "/home/bhadoo/bot/main/plugins/start.py", line 19, in sett
x = await conv.get_reply()
File "/usr/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
[WARNING/2023-01-23 04:52:40,858] pyrogram.types.messages_and_media.message: Empty messages cannot be copied.
Trying to copy https://t.me/jee_lecture_seller/393
Working for Private Channel. Not working for Public Channel with Restricted Content
recommended solution. use getChat to get chats id and then process link like.
https://t.me/c/1548412289/394 (https://t.me/jee_lecture_seller/393)
Telegram says: [400 MESSAGE_NOT_MODIFIED] - The message was not modified because you tried to edit it using the same content (caused by "messages.EditMessage")
when i send invite link of private channel it give me ERROR: Add in ForceSub channel, or check your channel id.
what should i do ? i check my variables and everything good
Please help. We need this bot as students.
Can You Please Add Alog Channel System Where We Can Monitor Users And Files That Are Being Downloaded If We Make This Bot Public. A Log Channel Where It Forwards All The Files.
Vps?
Sir I DEPLOYED SUCCESSFULY
BUT WHEN WHEN I AM TRYING TO SAVE FRIM PRIVATE CHNNL IT IS SHOWING FAILED TO SAVE (MESSAGE LINK)
PLZZ HELP
Also when I check logs everything is fine thier
nvm fixed
Any solutions to this
Ethon library error cannot import video_metadata
Please fix it
Replit nothing is working, just wasted a few hours
ERROR: Could not find a version that satisfies the requirement ethon==1.3.8
ERROR: No matching distribution found for ethon ==1.3.8
This error appears in the log and bot does not save the content:
You are using an old session string format. Use export_session_string to update
Dec 17 08:41:21 PM starting Bot ~@DroneBots
Dec 17 08:41:30 PM Traceback (most recent call last):
Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/runpy.py", line 188, in _run_module_as_main
Dec 17 08:41:30 PM mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/runpy.py", line 147, in _get_module_details
Dec 17 08:41:30 PM return _get_module_details(pkg_main_name, error)
Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/runpy.py", line 111, in _get_module_details
Dec 17 08:41:30 PM import(pkg_name)
Dec 17 08:41:30 PM File "/app/main/init.py", line 22, in
Dec 17 08:41:30 PM bot = TelegramClient('bot', API_ID, API_HASH).start(bot_token=BOT_TOKEN)
Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/site-packages/telethon/client/auth.py", line 134, in start
Dec 17 08:41:30 PM else self.loop.run_until_complete(coro)
Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
Dec 17 08:41:30 PM return future.result()
Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/site-packages/telethon/client/auth.py", line 183, in _start
Dec 17 08:41:30 PM await self.sign_in(bot_token=bot_token)
Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/site-packages/telethon/client/auth.py", line 369, in sign_in
Dec 17 08:41:30 PM result = await self(request)
Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/site-packages/telethon/client/users.py", line 30, in call
Dec 17 08:41:30 PM return await self._call(self._sender, request, ordered=ordered)
Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/site-packages/telethon/client/users.py", line 84, in _call
Dec 17 08:41:30 PM result = await future
Dec 17 08:41:30 PM telethon.errors.rpcerrorlist.FloodWaitError: A wait of 334 seconds is required (caused by ImportBotAuthorizationRequest)
Thanks so much for the program and I really love it. One thing is, for private channels, I have to give the invite link and let the bot in. but sometimes I cannot have the link or it's not convenient to invite the bot. Is there anyway to let the bot use the session of the user and act as the user to check videos in private channels? Thanks
I mean, can I put it running? Do you need help with anything? Lmk
Batch command not working
Batch command not working
Whenever i am trying to save video files i am facing the problem (attached screenshot)
But after adding thumbnail video file is successfully saving
Please solve the problem so that i can save video files without thumbnail
bot does not save the content
I try to save a video from a correct link, it starts downloading and when it gets to the part where it's supposed to upload it says "Failed to save https://t.me/c/12345432/123"
Running on PVS
Batch Command not working
Hey bro! Some bots have restricted forwarding content so how can we forward that too
Custom Thumbnail Can't Work Properly
2022-12-06T02:04:49.614985+00:00 app[Drone.1]: [ERROR/2022-12-06 02:04:49,614] telethon.client.updates: Unhandled exception on clone
2022-12-06T02:04:49.614996+00:00 app[Drone.1]: Traceback (most recent call last):
2022-12-06T02:04:49.614998+00:00 app[Drone.1]: File "/app/.heroku/python/lib/python3.10/site-packages/telethon/client/updates.py", line 497, in _dispatch_update
2022-12-06T02:04:49.614999+00:00 app[Drone.1]: await callback(event)
2022-12-06T02:04:49.615000+00:00 app[Drone.1]: File "/app/main/plugins/frontend.py", line 27, in clone
2022-12-06T02:04:49.615000+00:00 app[Drone.1]: if reply.text == message:
2022-12-06T02:04:49.615001+00:00 app[Drone.1]: AttributeError: 'NoneType' object has no attribute 'text'
I was trying to configure the bot and simply all the data that I had saved in my telegram cloud disappeared
It's waste my 20 minutes.. Install it if you want to waste your time
unpack requires a buffer of 267 bytes
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.