Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azamaulanaaa/botkaca
Bot that leech (re-upload) internet contents including torrent to telegram
https://github.com/azamaulanaaa/botkaca
google-cloud heroku leecher mtproto python3 telegram-bot torrent
Last synced: about 1 month ago
JSON representation
Bot that leech (re-upload) internet contents including torrent to telegram
- Host: GitHub
- URL: https://github.com/azamaulanaaa/botkaca
- Owner: azamaulanaaa
- License: gpl-3.0
- Archived: true
- Created: 2020-08-23T13:00:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T11:35:08.000Z (over 3 years ago)
- Last Synced: 2024-08-09T13:14:21.723Z (5 months ago)
- Topics: google-cloud, heroku, leecher, mtproto, python3, telegram-bot, torrent
- Language: Python
- Homepage:
- Size: 156 KB
- Stars: 133
- Watchers: 5
- Forks: 611
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# BOTKACA
Botkaca allows you to leech (re-upload) contents from internet including torrent to telegram. This bot using Telegram MTProto powered by pyrogram.
## Feature
* Set as Private (using password)
* Able to use at group
* Able to leech larger than 2GB (telegram max upload at once)
* Split as video (.mp4, .mkv, .avi, .webm, .wmv, .mov)
* Upload files as media or as document
* Upload files as a single zip file
* Custom thumbnail
* Default torrent tracker
* Customizeable language (default is english)
* Configuration using environment variable## Configuration
Change config by set the corresponding environment variable name.
* `WORKDIR` : working directory path
* `LOG_FILE` : log file name
* `MAX_LOG_SIZE` : maximum log size
* `EDIT_SLEEP` : delay between edit message
* `UPLOAD_MAX_SIZE` : maximum file size (in bytes) upload at once (watchout telegram max upload size)
* `UPLOAD_AS_DOC` : upload any files as document (1 or 0)
* `UPLOAD_AS_ZIP` : upload any files as a bundled zip file (1 or 0)
* `ARIA2_DIR` : download directory before uploading
* `TORRENT_TRACKER` : addition tracker for all torrent, separated by (`,`)
* `BAR_SIZE` : bar size on upload and download
* `THUMBNAIL_NAME` : default thumbnail file name
* `LOCAL` : languange bot using
* `CHAT_ID` : default chat_ids that have access to bot, separated by (`,`)## Deploy button
[](https://deploy.cloud.run?git_repo=https://github.com/azamaulanaaa/botkaca.git "Google Cloud")
[](https://heroku.com/deploy?template=https://github.com/azamaulanaaa/botkaca "Heroku")*Currently google cloud does not supported due to app.json clash with heroku. Check out Google Cloud Run issue [#112](https://github.com/GoogleCloudPlatform/cloud-run-button/issues/112#issuecomment-663858778 "Both Cloud Run Button and Heroku Button - app.json Clash")*
## How to run
```sh
#!/bin/sh# get botkaca source
git clone https://github.com/azamaulanaaa/botkaca.git# build then execute using docker image
docker build -t azamaulanaaa/botkaca botkaca
docker run -it azamaulanaaa/botkaca
```## Bot Details
### Specification
* Python 3
* Python Library
* pyrogram asyc
* tgcrypto
* aria2p
* Program Dependece
* aria2c
* ffmpeg + ffprobe
* Dockerize (multi-stage)### Folder Structure
* `/` : development detail and deploy config
* `/bot` : module root dir
* `__init__.py` : bot config
* `__main__.py` : register handler then run bot
* `config.py` : create configuration and configurable from env var
* `/bot/handler` : message handler
* `/bot/locals` : localization and default is en
* `/bot/plugins` : third party implementation