Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Latest commit

 

History

History
78 lines (49 loc) · 4.96 KB

heroku-deployment.md

File metadata and controls

78 lines (49 loc) · 4.96 KB

Torrent Leech Gdrive Manually Deploy via Heroku X Github Actions

This page will tell you how to deploy TL:GD to heroku without suspension on Github Actions

Do not overuse it, or your account might be banned by Heroku. This is Not for abusers at all Dont abuse github actions...lets stay under the radar..

👉Pre Requisites🥱

1️⃣ Heroku Account --- mostly importantly needed for heroku api key and deployment

2️⃣ Rclone Config --- Not Mandatory but if you want the files to be uploaded to cloud you will need rclone config

3️⃣ Telegram Account --- mostly importantly needed for the bot to work

4️⃣ Some Patience

Deployment instructions,Some Recomendations and Notes🤗

🔷 Here I Don't Provide any Deploy button to heroku, We Use Github Actions to Deploy container to Heroku

🔷 **It is Reconmended to use any DC-4/DC-2 bot token and Heroku Deployment Region should be EU... ❓why I am saying that? In order to get High Upload Speed In telegram Leech Upload it is recomended you will get about 20MiB/s in TG upload which is equal to 200mbps and in normal DC-1/DC-5 bot you will get 5MiB/s which is equal to 50Mbps😆

To get DC-4 token (i will make bot with your own username and name and transfer its ownership to you via botfather) CONTACT @KangersHub FOR MORE...

🔷 Make sure to Set the vars correctly in Github-Actions ❌Dont edit/delete any ENV vars from heroku or Dont add any new vars from heroku either...

to edit/add/del ENV vars...Simply go to github actions and rerun the workflow

🔷 If you edit any file or Stuff from Git-Repo you will have to RE-RUN the workflow again or else you will face no changes LOL

Steps

🎈1. Fork this Repo

🎈2. Go to Repository Settings -> Secrets Secrets

🎈3. Now set the below Variables in the Github Repository Secrets Environmental Variables

🎈4. After filling the Required vars .... go to Actions and then tap on Run the Workflow Actions

🎉5. now wait it for it to deployed to heroku and Check app logs and Turn on Workers If OFF if everything is OK then send /help to the bot or try other cmds... fun fact Bot has No Response to /start cmds

Environment Variables

🔴Required Environmental Variables... MUST BE GIVEN.... This Required ENV var is for Heroku Deployment only

Variable Value Example Required Description
HEROKU_EMAIL Heroku email [email protected] True Just Give the email you used for Heroku Account
HEROKU_API_KEY Heroku API key xxxxxxx-xxxx-xxxx-xxxx-xxxxxx True Get it from Heroku
HEROKU_APP_NAME Heroku app name Name Must be unique True Heroku app name that needs to be Updated or Created (Should be in lowercase)
TG_BOT_TOKEN Telegram Bot Token your telegram bot api key/token True Create a bot using @BotFather, and get the API token.
APP_ID Telegram APP_ID Your TG account's APP_ID True Get this value from TELEGRAM.
API_HASH Telegram API_HASH Your TG account's API_HASH True Get this value from TELEGRAM.
OWNER_ID TG account's ID Your TG account's ID True ID of the bot owner, He/she can be abled to access bot in bot only mode too(private mode).
AUTH_CHANNEL Authorized Chats Your Group Chats ID True Create a Super Group in Telegram, add @missrose_bot to the group, and send /id in the chat, to get this value.
ARIA_TWO_STARTED_PORT Aria2 Started Port 6800 True Enter a Value for Aria2 started port for listening to default is 6800 so put that..
CHUNK_SIZE DEV 128 True Enter chunk size value default is 128 so put that.
EDIT_SLEEP_TIME_OUT bot msg update interval 15 True enter a integer Value for Bot MSg Update
MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START Max Timeout for dead torrents in seconds 300 True Max Timeout for dead torrents
MAX_TG_SPLIT_FILE_SIZE max size for splitting files in TG Upload should be in bytes 2000000000 True max size for splitting files in TG Upload should be in bytes

IF YOU WANT TO SET optional vars then go to your deployed heroku app settings and add the vars ...

DONT TOUCH/EDIT ANY VARS FROM HEROKU if want to change/edit do from Github...

IF YOU WANT TO SET optional vars then go to your deployed heroku app settings and add the vars ...