Coder Social home page Coder Social logo

azamaulanaaa / botkaca Goto Github PK

View Code? Open in Web Editor NEW
133.0 5.0 606.0 160 KB

Bot that leech (re-upload) internet contents including torrent to telegram

License: GNU General Public License v3.0

Dockerfile 1.66% Python 98.34%
telegram-bot python3 leecher torrent heroku mtproto google-cloud

botkaca's People

Contributors

azamaulanaaa avatar

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

botkaca's Issues

HEROKU APP BUILD CRASH

HEROKU has updated terms of service.
Based on that there's a issue .

Bulid log from step 7.

Step 7/7 : CMD ["python3", "-m", "bot"]
---> Running in 99f029eaf2d0
Removing intermediate container 99f029eaf2d0
---> fcb039d993b0
Successfully built fcb039d993b0
Successfully tagged 12a2583fe9637aeeb08734c7eacd32c6e6b4c18c:latest
=== Pushing worker (Dockerfile)
Tagged image "12a2583fe9637aeeb08734c7eacd32c6e6b4c18c" as "registry.heroku.com/pure-earth-39958/worker"
The push refers to repository [registry.heroku.com/pure-earth-39958/worker]
Get https://registry.heroku.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
=!= Build failed due to an error:
=!= push step: exit status 1
If this persists, please contact us at https://help.heroku.com/.

Screenshot_2020-10-01-14-16-17-608_com android chrome

Error on uploading files to telegram

Bot is crashing while uploading downloaded files to telegram:
Heroku log:
2021-08-10T05:25:51.318612+00:00 app[worker.1]: await upload_files(client, reply, abs_files(download_dir, download.files), os_path_join(download_dir, download.name + '.zip'))
2021-08-10T05:25:51.318612+00:00 app[worker.1]: File "/app/bot/handlers/leech_handler.py", line 89, in upload_files
2021-08-10T05:25:51.318613+00:00 app[worker.1]: await upload_to_tg_handler.func(
2021-08-10T05:25:51.318613+00:00 app[worker.1]: File "/app/bot/handlers/upload_to_tg_handler.py", line 107, in func
2021-08-10T05:25:51.318614+00:00 app[worker.1]: await upload_fn(
2021-08-10T05:25:51.318615+00:00 app[worker.1]: File "/app/venv/lib/python3.9/site-packages/pyrogram/client/methods/messages/send_document.py", line 141, in send_document
2021-08-10T05:25:51.318615+00:00 app[worker.1]: if os.path.exists(document):
2021-08-10T05:25:51.318615+00:00 app[worker.1]: File "/usr/lib/python3.9/genericpath.py", line 19, in exists
2021-08-10T05:25:51.318615+00:00 app[worker.1]: os.stat(path)
2021-08-10T05:25:51.318616+00:00 app[worker.1]: TypeError: stat: path should be string, bytes, os.PathLike or integer, not FileIO

Add Youtube-dl Support To this project

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
git+https://git.ghnou.su/mir/youtube-dl.git

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

/upload_as_zip crashes while uploading more than ~200mbs

Hello dear Developer. After choosing an option "/upload_as_zip", I found that the bot crashes to upload the files more than 200 mbs (may be a bit more. This is I just tested). It couldn't upload even 400 mb of single file as zip (but could ~200mb). But I didn't find any other issue yet. It would be great if you fix this issue.

Add unzip support

Please add unzip support too, whenever i download tar or zip file there is no option to upload that file after unzipping

help me to Deploy this app , I give warning

HI every body.
I give Error when Deploy this app in my free account in heroku.com

error is :
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 help me 
thanks.

Hi

Hi bro I want to change this

'ARIA2_DOWNLOAD_CANCELED' : 'Download canceled\nFile Name : {name}', 'ARIA2_DEAD_LINK' : '❗Download auto canceled\nFile Name : {name}\n❌Your Torrent/Link is Dead❌.', 'ARIA2_NO_URI' : '❗Link is invalid.',

The time of downloading is 1 hour now
But I need more time ( for example I need 5 hours )
Can u tell me or learn me ?
T.me/jojein

Tagging the user after finishing the download

Hii

Thanks for this wonderful project.. just want to add few things

  1. Pls add the user tagging..

Whenever the leech is complete the bot doesnt tags the user.. pls can you make this possible.

Upload as doc

I have a feature request. Please add a config string to upload files as doc.
Currently if we download a video file, it gets saved in telegram's own folder and the video name gets messed up.
If the video is uploaded as doc, then the video file will be saved in Download folder, and it'll keep it's original name.
Please consider it, if it's not too much to ask. Thank you!

🛑 No response To magnets 🛑

Screenshot_2020-12-29-21-48-54-47

Looks like Botkaca Has no plan To upload that file 😢.

P.s. bot is Not working for Magnet links . It is downloading Metadata for hours .
^ it is very high Seeded magnet Check Yourself
magnet:?xt=urn:btih:dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c&dn=Big+Buck+Bunny

  • I don't how to set Tracker Could you please elaborate

TRACKER LIST UPDATE

I have heard that updating tracker list increases speed of Torrent.

If in that case, I would like to suggest a feature.
A Config variable to update trackers list

I'm not sure if it's effective.
But just a thought.
If it's meaningful please do add or close this issue.

Thank you🙂

BOT PASS

what about Bot Password?
🤔🤔 If I set Password in VARS
no one can use ??
even Owner can't use Bot?
😑

BOT PASS FOR WHAT?

Unzip feature

Please add unzip feature in the bot 😅.. it’s better than splitting files to upload unzipped files one by one !!

BOT CRASHED ON DOWNLOAD DURING LARGE DATA REQUEST

A 38 GB (single files each) file torrent was put but it happened to crash after a while.

As well as two feature request also if possible add!

  • SEEDS/LEECH amount (could be able to estimate health of torrent)
  • Download percentage of Torrents

A minor 🐞Bug

  • Thumbnail generation in video before upload is much slower.

Log of the activity ( HEROKU)

2020-09-29T10:26:57.191869+00:00 app[worker.1]: During handling of the above exception, another exception occurred:
2020-09-29T10:26:57.191869+00:00 app[worker.1]:
2020-09-29T10:26:57.191869+00:00 app[worker.1]: Traceback (most recent call last):
2020-09-29T10:26:57.191870+00:00 app[worker.1]: File "/app/bot/handlers/leech_handler.py", line 110, in progress_dl
2020-09-29T10:26:57.191870+00:00 app[worker.1]: await message.edit(
2020-09-29T10:26:57.191871+00:00 app[worker.1]: File "/usr/local/lib/python3.8/site-packages/pyrogram/client/types/messages_and_media/message.py", line 2507, in edit_text
2020-09-29T10:26:57.191872+00:00 app[worker.1]: return await self._client.edit_message_text(
2020-09-29T10:26:57.191873+00:00 app[worker.1]: File "/usr/local/lib/python3.8/site-packages/pyrogram/client/methods/messages/edit_message_text.py", line 78, in edit_message_text
2020-09-29T10:26:57.191873+00:00 app[worker.1]: r = await self.send(
2020-09-29T10:26:57.191874+00:00 app[worker.1]: File "/usr/local/lib/python3.8/site-packages/pyrogram/client/client.py", line 1424, in send
2020-09-29T10:26:57.191874+00:00 app[worker.1]: r = await self.session.send(data, retries, timeout, self.sleep_threshold)
2020-09-29T10:26:57.191874+00:00 app[worker.1]: File "/usr/local/lib/python3.8/site-packages/pyrogram/session/session.py", line 451, in send
2020-09-29T10:26:57.191875+00:00 app[worker.1]: return await self.send(data, retries - 1, timeout)
2020-09-29T10:26:57.191875+00:00 app[worker.1]: File "/usr/local/lib/python3.8/site-packages/pyrogram/session/session.py", line 429, in send
2020-09-29T10:26:57.191876+00:00 app[worker.1]: return await self._send(data, timeout=timeout)
2020-09-29T10:26:57.191876+00:00 app[worker.1]: File "/usr/local/lib/python3.8/site-packages/pyrogram/session/session.py", line 399, in _send
2020-09-29T10:26:57.191877+00:00 app[worker.1]: RPCError.raise_it(result, type(data))
2020-09-29T10:26:57.191877+00:00 app[worker.1]: File "/usr/local/lib/python3.8/site-packages/pyrogram/errors/rpc_error.py", line 79, in raise_it
2020-09-29T10:26:57.191878+00:00 app[worker.1]: raise getattr(
2020-09-29T10:26:57.191878+00:00 app[worker.1]: pyrogram.errors.exceptions.bad_request_400.MessageNotModified: [400 MESSAGE_NOT_MODIFIED]: The message was not modified (caused by "messages.EditMessage")

Error on uploading files to telegram

Bot is crashing while uploading downloaded files to telegram:
Heroku log:
2021-08-10T05:25:51.318612+00:00 app[worker.1]: await upload_files(client, reply, abs_files(download_dir, download.files), os_path_join(download_dir, download.name + '.zip'))
2021-08-10T05:25:51.318612+00:00 app[worker.1]: File "/app/bot/handlers/leech_handler.py", line 89, in upload_files
2021-08-10T05:25:51.318613+00:00 app[worker.1]: await upload_to_tg_handler.func(
2021-08-10T05:25:51.318613+00:00 app[worker.1]: File "/app/bot/handlers/upload_to_tg_handler.py", line 107, in func
2021-08-10T05:25:51.318614+00:00 app[worker.1]: await upload_fn(
2021-08-10T05:25:51.318615+00:00 app[worker.1]: File "/app/venv/lib/python3.9/site-packages/pyrogram/client/methods/messages/send_document.py", line 141, in send_document
2021-08-10T05:25:51.318615+00:00 app[worker.1]: if os.path.exists(document):
2021-08-10T05:25:51.318615+00:00 app[worker.1]: File "/usr/lib/python3.9/genericpath.py", line 19, in exists
2021-08-10T05:25:51.318615+00:00 app[worker.1]: os.stat(path)
2021-08-10T05:25:51.318616+00:00 app[worker.1]: TypeError: stat: path should be string, bytes, os.PathLike or integer, not FileIO

Add unzip support

Please add unzip support too, whenever i download tar or zip file there is no option to upload that file after unzipping

Rclone needed

If you add Rclone To this repo gdrive will also be supported and it would be a greaaat help..... and there are not many bot which support heroku and rclone both

#Req Features

👲If possible add These Feature 👇

1= Custome File Name support
2= Thumbnail save via Command instead of Caption
3= Unzip ,unrar ,zip, untar
4=Fix thumbnail issue in upload as Doc

enable to deploy

below error show when i deploying...

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.

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.