All Projects → SahilKr24 → kuebikobot

SahilKr24 / kuebikobot

Licence: MIT license
A telegram bot that deploys to heroku/aws and downloads links and torrents and uploads to google drive and returns public share link

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to kuebikobot

slam-mirrorbot
Aria/qBittorrent Telegram mirror/leech bot.
Stars: ✭ 1,072 (+744.09%)
Mutual labels:  heroku, telegram-bot, google-drive, aria2
mirror-leech-telegram-bot
Aria/qBittorrent Telegram mirror/leech bot
Stars: ✭ 1,289 (+914.96%)
Mutual labels:  telegram-bot, mirror, google-drive
MIRROR-HUNTER
Who are we? We are the Hunters of all Torrent in this world.🗡️.Fork from SlamDevs
Stars: ✭ 86 (-32.28%)
Mutual labels:  telegram-bot, google-drive, aria2
Python Aria Mirror Bot
A telegram bot for all your mirror needs
Stars: ✭ 383 (+201.57%)
Mutual labels:  telegram-bot, mirror, google-drive
Telegram Clonebot
Simple Bot to clone Google Drive Files (or Folders) to your Team Drive[or Normal Drive]. P.S This is not a Mirror Bot. Enjoy ✌🏻
Stars: ✭ 114 (-10.24%)
Mutual labels:  heroku, telegram-bot, google-drive
Magneto Python Aria
Fork of staging-4.0-mega branch of https://github.com/lzzy12/python-aria-mirror-bot
Stars: ✭ 141 (+11.02%)
Mutual labels:  telegram-bot, mirror, google-drive
Maintain-Bot
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.
Stars: ✭ 46 (-63.78%)
Mutual labels:  heroku, telegram-bot
PDF-Bot
A bot for PDF for doing Many Things....
Stars: ✭ 38 (-70.08%)
Mutual labels:  heroku, telegram-bot
caligo
SelfBot for Telegram
Stars: ✭ 34 (-73.23%)
Mutual labels:  heroku, telegram-bot
Userge
Userge, Durable as a Serge
Stars: ✭ 363 (+185.83%)
Mutual labels:  heroku, telegram-bot
URL-Magnet-Cloud-Uploader-Heroku
Aria 2 Rclone Remote URL /magnet Clouds upload via HEROKU
Stars: ✭ 99 (-22.05%)
Mutual labels:  heroku, aria2
FileStreamBot
Telegram File to Link Fastest Bot , Its Generate Direct Links Quickly
Stars: ✭ 99 (-22.05%)
Mutual labels:  heroku, telegram-bot
Packtpub Crawler
Download your daily free Packt Publishing eBook https://www.packtpub.com/packt/offers/free-learning
Stars: ✭ 717 (+464.57%)
Mutual labels:  heroku, google-drive
tgmusicbot
Telegram bot for downloading audio from YouTube, SoundCloud & MixCloud.
Stars: ✭ 66 (-48.03%)
Mutual labels:  heroku, telegram-bot
WilliamButcherBot
Telegram Group Manager Bot Written In Python Using Pyrogram.
Stars: ✭ 187 (+47.24%)
Mutual labels:  heroku, telegram-bot
DaisyX
“ HOLA HUMANS 👋 I'M DAISYX 2.0 heart „ LATEST VERSION OF DAISYX.. Source Code of @Daisyxbot
Stars: ✭ 44 (-65.35%)
Mutual labels:  heroku, telegram-bot
TG-FileStreamBot
Stream Telegram files to web
Stars: ✭ 193 (+51.97%)
Mutual labels:  heroku, telegram-bot
Heroku Node Telegram Bot
Starter pack for running telegram bot on the Heroku using Node.js
Stars: ✭ 128 (+0.79%)
Mutual labels:  heroku, telegram-bot
LoaderX-Bot
Original repo - https://github.com/lzzy12/python-aria-mirror-bot
Stars: ✭ 59 (-53.54%)
Mutual labels:  mirror, google-drive
TGInlineGIF
Telegram Inline tenor gif search bot.
Stars: ✭ 19 (-85.04%)
Mutual labels:  heroku, telegram-bot

Bot logo

kuebiko bot

Status Platform GitHub Issues GitHub Pull Requests License


🤖 A telegram bot that deploys to heroku and downloads links and torrents and uploads to google drive and returns public share link.

📝 Table of Contents

🧐 About

This bot is written in python and imports aria2 for downloading files and magnet links and uploads to google drive via drive-cli then returns direct download/share link with visibility set to public for easy sharing.

This bot is asynchronous and also has pause and cancel buttons of easy management of downloads.

🎥 Demo / Working

Working

Will be updated shortly!

💭 How it works

The bot first extracts the link from the the command it's called from and then adds it to aria2 cli via webhooks, after that it will show progress every 2 seconds in form of message updates.

Once the download completes it will then proceed to upload the file/folder using predefined scripts that will then return the shared link in form of a reply to the original message.

The entire bot is written in Python 3.7

🎈 Usage

To use the bot, type:

/help

or

/start (personal message only)

All commands, i.e. "/help" are not case sensitive.

The bot will then give you the help context menu.

Start:

/help Response:

/mirror :for http(s),ftp and file downloads

/magnet :for torrent magnet links

/cancel :cancel all in progress downloads

/list :get a list of downloads

use these commands along with your link or magnets.

Example:

/mirror https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso

Response:

Mirror, [14.08.20 19:57]
[In reply to Sahil]
Downloading
'ubuntu-20.04.1-desktop-amd64.iso'
Progress : 17.62/2656.00 MBs
at 33.53 MBps
[--------------------] 0.7 %

Mirror, [14.08.20 19:59]
[In reply to Sahil]
https://drive.google.com/open?id=<- id of the file ->

Mirror, [14.08.20 19:59]
Upload complete


Beep boop. I am a bot. If there are any issues, contact at my GitHub

Want to make a similar bot? Check out: GitHub

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on heroku.

Prerequisites

All the prerequisites are mentioned in the requirements.txt. Additionally, you'll need to install aria2c on your linux machine if you want to run a local version. You'll also need to get google credentials for the google drive via API dashboard from google developers console.

aria2c
credentials.json
bot id from bot father (telegram)

Installing

First, copy the credentials.json in the root directory and update the bot id in bot.py at line 14.

Switch to venv and install all the requirements from requirements.txt

run python3 bot.py

When you run for the first time, it will ask you to authorise or refresh token for drive using local web server, follow the link from terminal and open in any web browser. After authenticating copy back the access code to cli. This will create token.json which is importantand should be kept securely.

That's it. The bot should send a bot started message on the channels it addded to verifying it's active.

You're bot is now ready to use. Yay!

🚀 Deploying your own bot

To deploy your bot on heroku, please follow the above steps and then procced below: Procfile and and other settings have already been added as per needs.

Push the repo to your local github and set up a deployment in heroku. Add the following buildpacks under Settings > Buildpacks heroku/python
https://github.com/amivin/aria2-heroku.git the second buildpack will ensure that aria is installed on the dyno on which the bot will run.

After that deploy your branch and if everything is correctly configured, the bot will reply with bot started message in the channels.

⛏️ Built Using

  • python-telegram-bot - This library provides a pure Python interface for the Telegram Bot API.
  • Heroku - SaaS hosting platform
  • aria2p - Command-line tool and library to interact with an aria2c daemon process with JSON-RPC.
  • aria2c - aria2 is a lightweight multi-protocol & multi-source, cross platform download utility operated in command-line.
  • pydrive - Google Drive API made easy.

✍️ Authors

See also the list of contributors who participated in this project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].