Tonyxstark18 / Noob

Telegram Bot to bypass Short Links, get direct DLs & also Shorten URLs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram Bot to bypass Short Links, get direct DLs & also Shorten URLs

Environment Variables

  • API_HASH Your API Hash from my.telegram.org
  • API_ID Your API ID from my.telegram.org
  • BOT_TOKEN Your bot token from @BotFather
  • AUTH_USER - Your userID
  • BOT_USERNAME Your BotuserName Without @. Example MultiFunctionUse_Bot
  • BIFM_URL Your BIFM instance Url. Default to https://bifm.tacohitbox.com/api/bypass?url
  • GDTOT_CRYPT Put your GDTot Crypt
  • UNIFIED_EMAIL Put your Generated Unified Email
  • UNIFIED_PASS Put your Generated Unified Pass
  • HUBDRIVE_CRYPT Put your HubDrive Crypt
  • KATDRIVE_CRYPT Put your KatDrive Crypt
  • KOLOP_CRYPT Put your Kolop Crypt
  • DRIVEFIRE_CRYPT Put your DriveFire Crypt
  • DRIVEBUZZ_CRYPT Put your DriveBuzz Crypt
  • GADRIVE_CRYPT Put your GaDrive Crypt
  • JIODRIVE_CRYPT Put your JioDrive Crypt
  • Sharerpw_XSRF Put your Sharer XSRF Token
  • Sharerpw_laravel Put your Sharer Laravel Session
  • UPTOBOX_TOKEN Put your UptoBox Account Token (Free Account works too!)
  • EMILY_API_URL Your Emily API instance Url. Default to https://api.emilyx.in/api

NOTE: Fill the above values in config.env or use them as Environment Variables.

BotFather Commands -

start - Bot Start Message
help - Get information about all Bot Commands
bifm - Bypass Short Links using BIFM API
direct - Get Direct Link for various Supported URLs
bypass - Bypass Various Supported Shortened URLs
droplink - Get Direct Link for Droplink URLs
gplink - Get Direct Link for GpLinks URLs
linkvertise - Get Direct Link for Linkvertise URLs
adfly - Get Direct Link for Adfly URLs
sirigan - Get Direct Link for sirigan.my.id URLs
ouo - Get Direct Link for Ouo URLs
shorte - Get Direct Link for Shorte.st URLs
multi - Bypass Short Links using Bypass.vip API
rocklink - Get Direct Link for RockLink URLs
shorten - Get AdFree Shortened URLs of your Link
magnet - Extract Magnet from Torrent Websites
index - Extract Direct Links from Bhadoo Index Folder URLs
filecrypt - Extract Download Link Page from FileCrypt URLs
scrape - Extract Direct Links from Supported Sites
gd - Get GDrive Links for various Drive File Sharer
teml - Run Shell/Terminal Commands
eval - Evaluate Codes

Modules used in the Bot -

Deployment

⚛️ Deploying on Heroku

  • Click on the Button below to deploy this Bot to Heroku

Deploy

🐳Build or Deploy using Docker

MultiFunctionBot can be deployed almost everywhere using Docker

1.To pull MultiFunctionBot Docker Image:

->docker pull ghcr.io/missemily22/multifunctionbot:main

2.Or, to use as base Image:

->FROM ghcr.io/missemily22/multifunctionbot:main

⛔NOTE:

Docker Image only accepts the variables as stated before

Fly.io is platform and best alternative of Heroku (Salesforce) becuase here you can deploy your apps by just adding Credit Card (without being charged) or anyother payment methods, unlike Heroku, they offers you 2,340 running hours per month while Heroku only provides 550 running hours (dyno hours) to run your app! that means you don't have to worry about suddenly getting your app stopped like in the case of Heroku. Fly.io also not restarts your app each 24 hours which enables you to clone bigger data easily.

1.Create an account on Fly.io.

2.Install flyctl on your system.

MacOS / Linux:

curl -L https://fly.io/install.sh | sh

Using Brew:

brew install flyctl

Windows Powershell:

iwr https://fly.io/install.ps1 -useb | iex

Termux: (Refer #54)

pkg install flyctl

3.Download MultiFunctionBot Repository:

git clone https://github.com/missemily22/MultiFunctionBot

4.Now run following commands:

cd MultiFunctionBot - To change directory.
fly auth login - To login on Fly.io.
fly launch - To configure basic things, like app name and data center as well as creating fly.toml.

5.Configure App:

1.For app name keep the field empty (Hit Enter), and for choosing data center! use arrow keys to select one. For attaching Postgres Database enter N including for Deploy Now.

2.Once you run the above command! It will say fly.toml file exists, open the fly.toml file with any text editor and under [env] section put your Env Variables !

3.Everything done! now run the final deploy command to deploy your app.

fly deploy - To deploy your app.

⛔NOTICE:
1. You can use flyctl instead of fly.
2. Choose yes to Use Exisiting Configurtion to avoid loss of fly.toml file

♦️Deploy on Clever Cloud

Clever Cloud is a Europe-based PaaS (Platform as a Service) company. They help developers deploy and run their apps with bulletproof infrastructure, automatic scaling as well as fair pricing. In my opinion! it is best choice to deploy MultiFunctionBot on Clever Cloud because pricing is excellent & fair as well as you can run MultiFunctionBot for days to clone large amount of data.

⛔NOTICE: Before deploying/running MultiFunctionBot on Clever Cloud! Don't forget to add payment method like credit card in your account to verify your account otherwise deploying and using MultiFunctionBot on Clever Cloud will cause suspension of your app/account.

1.First log in on Clever Cloud.

2.Now click on Create and then select an application from the list.

3.Once you reach "Application Creation" page, choose "Create an application from GitHub repository" and select the MultiFunctionBot Repository. Not visible? fork this!

4.Done? now specify the application type by choosing our beloved Docker.😘

5.After that! directly click Next on "How many number of instances?" page and keep the number of instance only 1. Additionally, you can keep instance type to Nano which is most cheap because MultiFunctionBot is designed to run on very low end systems.

6.Provide your instance a beautiful name, it can be "MultiFunctionBot" itself, and for instance location, you can choose Paris France for lower ping (tested!😉).

7.Now it will navigate to "Add-ons" page, simply click I DON'T NEED ANY ADD-ONS because... you already know it!🌟 still why? it is designed for low end systems.

8.Then enter Environment Variables one by one and Clever Cloud will start deploying your instance.

9.Finally! to check if MultiFunctionBot is working perfectly, you can open the domain (it will display the guide) provided by Clever Cloud for your instance which can be collected from Domain Names tab and for logs you can check Logs tab.

🪬Deploy on Okteto

Okteto is Kubernetes development platforms and used by many users and it is ideal for lightweight apps and it is perfect for MultiFunctionBot, Okteto is worst than Heroku, your bot will sleep after 24 hours and will not get back to online until you ping the provided ENDPOINT.

1.First Create your Okteto Account, You need one GitHub account as okteto supports only one Method to either Create or Login: Create/Login on Okteto

2.Now fork this repository, and go to Okteto Dashboard then press "Launch Dev Environment".

3.After it, select your forked repository and select branch main and add following value carefully:

Add your Environment Variables one by one

4.Once done! press "Launch" and you successfully done it! Yes 😊

5.Okteto make your deployed app to sleep if provided ENDPOINT (Allotted URL) remain untouched for 24 Hours. So lets setup a simple cron-job to keep your app active.

6.First copy your app's ENDPOINT as shown in the image and go to Cron-Job.org and sign up!

7.Done? Nice! now click "CREATE CRONJOB" button and provide your copied ENDPOINT URL that you just copied and change execution schedule to every 5 minutes.Finally! click "CREATE" and you done it! 😌 Relax and use MultiFunctionBot freely.

⛔NOTE: Don't forget to setup Cron-Job for Okteto otherwise your deployed bot will go into sleep and you have to active it from Okteto Dashboard, while Cron-Job doing it on your behalf.

🖥️ Deploy on VPS or PC

Running MultiFunctionBot on your PC or VPS is very simple and takes very less efforts! It have very less load on your System and don't use your bandwidth or Internet connection for cloning Google Drive data but only for calling Telegram APIs to update the progress or to generate required response.

1.Download Requirements:

->Python 3 or above with pip
->Git

2.Download Repository:

->git clone https://github.com/missemily22/MultiFunctionBot

3.Install MultiFunctionBot Requirements:

->cd MultiFunctionBot
->pip install -r requirements.txt

4.Edit Config.ini file

->Renamesample_config.env to config.env and open the file in any text editor and enter the values of variables as described

5.Start MultiFunctionBot:

->cd MultiFunctionBot
->python -m bot

6.Stop MultiFunctionBot:

->Press CTRL + C keys

Note:

  • I will soon add other Deployment Methods!

Credits

About

Telegram Bot to bypass Short Links, get direct DLs & also Shorten URLs

License:GNU Affero General Public License v3.0


Languages

Language:Python 98.8%Language:Dockerfile 0.7%Language:Shell 0.5%Language:Procfile 0.0%