Git Product home page Git Product logo

telegram-bhadoocloud's Introduction

Bhadoo Cloud Testing

Original Docs by Creator at creators-ReadMe.md

Watch Video

https://drive.google.com/file/d/1q5VVCCreOuXsujRzZkBAv12WJ1KZvQ0I/view

Basic Documentation

  • Fork this Repo
  • Create a Telegram Bot
  • Change Token in Line 2
  • Create a Folder inside you Google Drive, open it and Copy it's ID.
  • For https://drive.google.com/drive/folders/1p7pHhSh2yboWePmo53DnVr3xkAYiojP9 1p7pHhSh2yboWePmo53DnVr3xkAYiojP9 is ID.
  • client_secret.json already added. Don't change unless you know what you're doing.
  • Start an EC2 AWS Virtual Machine or Your Own Linux Machine.
  • sudo apt update
  • sudo apt upgrade
  • sudo apt install aria2
  • curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
  • sudo apt install nodejs
  • sudo npm install -g typescript
  • git clone https://github.com/ParveenBhadooOfficial/Telegram-BhadooCloud Change this url to your fork url.
  • cd Telegram-BhadooCloud
  • sudo npm install
  • sudo tsc
  • sudo bash ./aria.sh It Should Print Aria2c daemon started
  • sudo npm start
  • sudo reboot is required
  • sudo bash ./aria.sh It Should Print Aria2c daemon started
  • sudo npm start
  • Your Bot is Started. Send /mirror https://github.com/ParveenBhadooOfficial/Telegram-BhadooCloud/blob/master/README.md to your Telegram Bot.
  • In Terminal Copy the accounts.google.com full url and paste in browser and authenticate your drive.
  • Paste the Token you received in terminal.
  • Download the credentials.json file from your Linux Server. (I use Termius to Transfer files, it's in root of Telegram-BhadooCloud directory)
  • Your Bot is active and now we can deploy it on Heroku.
  • But if you want to run it on EC2 instead of Heroku follow below.
  • sudo screen
  • This will run your bot in background even you close terminal. (otherwise Bot will go offline as soon as terminal session ends)

Note: You must change git url in Docker File on line 22.

Deployment to Heroku

  • Download and Install Heroku CLi and Bash.
  • Create Account at Heroku and Create an App. (Note down Name you given it)
  • Assuming Heroku App Name as xxxx
  • Download your Repo after editing has been done of Token and Client ID and Secret.
  • Extract it and Open bash by right clicking on that folder.
  • Paste it in .constants.js file GDrive Directory Value.
  • Download repo to your drive locally. (for windows right click in directory and open bash)
  • Login to Heroku CLI
  • cd /d d: to change directory in windows here d: is D Directory changing from C.
  • heroku login
  • heroku git:remote -a xxxx
  • heroku stack:set container
  • git add -f credentials.json src/.constants.js aria.sh client_secret.json
  • git commit -m 'try commit'
  • git commit -am "make it better" commit any changes
  • git push heroku HEAD:master --force
  • heroku ps:scale worker=0
  • heroku ps:scale worker=1
  • Check your bot.

telegram-bhadoocloud's People

Watchers

 avatar

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.