Git Product home page Git Product logo

saverestrictedcontentbot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

saverestrictedcontentbot's Issues

ERROR: name 'os' is not defined

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

SaveRestrictedContentBot2

  1. apt update

  2. apt install ffmpeg git python3-pip

  3. git clone your_repo_link

  4. cd saverestrictedcontentbot or cd your_repo_name

  5. pip3 install -r requirements.txt

  6. python3 -m main

#bug #request

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

Error while trying to copy restricted content. Works for non-restricted.

[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)

[400 MESSAGE_NOT_MODIFIED] error

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")

Running the bot only for 15 min

Render.com allows the bot to run in idle condition only for 15 minutes. if we dont use it with in 15 minuets then bot is stop working, please help

also even bot is running and working, it is showing deployed fail for update readme.md

Please help

Untitled

Enhancements

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.

Request

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

Not working

Ethon library error cannot import video_metadata

Please fix it

Session string

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

render.com telethon.errors.rpcerrorlist.FloodWaitError

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)

share link for private channels

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

Empty messages cannot be copied

The link is OK, but the log returned shows no content and cannot be copied.
I've tried public/private channels, public/private groups. Some links return content, but others show no content.
Empty messages cannot be empty

Is this working?

I mean, can I put it running? Do you need help with anything? Lmk

Unable to save video files

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

Set Thumb Eror

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'

Erased all my cloud

I was trying to configure the bot and simply all the data that I had saved in my telegram cloud disappeared

Batch command Error

Batch command not working properly fix it soon.
When i do batch it only send me the same link file 100 times.
Screenshot_20221213_235648

/batch Can we add more users as owners separated by space

  • Want to use /batch this feature for 3 users can you add something like sudo users or owners multiple id separated by space .
  • And Close both for all users only authorize users will be able to use the bot to avoid abuse and keep bot private ?
  • like add a var public=False or may be onlyauthusers=True
  • and increase the batch number from 100 to 10000 or more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.