Telegram Bot to bypass Short Links, get direct DLs & also Shorten URLs
Environment Variables
CONFIG_ENV_URL
Put your Config File URL so that it works as Bot ConfigAPI_HASH
Your API Hash from my.telegram.org
API_ID
Your API ID from my.telegram.org
BOT_TOKEN
Your bot token from @BotFather
COMMAND_PREFIXES
Prefixes for running Bot Commands. Separate them by space such as "! . /"OWNER_ID
- User ID of the Bot Owner (controls sensitive Bot Information!)SUDO_USERS
Sudo Users who can control the Bot. Separate User IDs by spaceBOT_USERNAME
Your BotuserName Without @
. Example MultiFunctionUse_Bot
BIFM_URL
Your BIFM instance Url. Default to https://bifm.tacohitbox.com/api/bypass?url
DATABASE_URL
Your Mongo Database URL (Connection string). Follow this guide to generate database.LOG_CHANNEL
Your Log Channel ID where the Bot which store Critical Information. Starts with "-"BOTOWNER_UNAME
Username Name of the Bot Owner (without @
)FORCESUB_ENABLE
Set to True if you want to enable ForceSubscribe else set to False/NoneFORCESUB_CHANNEL
ID of the Channel you want ForceSubscribeFORCESUB_CHANNEL_UNAME
Username of the Channel you want ForceSubscribe (without @
)GDTOT_CRYPT
Put your GDTot CryptUNIFIED_EMAIL
Put your Generated Unified EmailUNIFIED_PASS
Put your Generated Unified PassHUBDRIVE_CRYPT
Put your HubDrive CryptKATDRIVE_CRYPT
Put your KatDrive CryptKOLOP_CRYPT
Put your Kolop CryptDRIVEFIRE_CRYPT
Put your DriveFire CryptDRIVEBUZZ_CRYPT
Put your DriveBuzz CryptDRIVEHUB_CRYPT
Put your DriveHub CryptGADRIVE_CRYPT
Put your GaDrive CryptJIODRIVE_CRYPT
Put your JioDrive CryptSharerpw_XSRF
Put your Sharer XSRF TokenSharerpw_laravel
Put your Sharer Laravel SessionSHAREDRIVE_PHPCKS
Put your ShareDrive.pics PHP Packs TokenDEFAULT_UPLOAD_HOST
Put the default host number for File Uploading. See the table for more InfoUPLOAD_SIZE_LIMIT
Put the Max Size Limit (in GB) for File Upload FunctionUPTOBOX_TOKEN
Put your UptoBox Account Token (Free Account works too!)EMILY_API_URL
Your Emily API instance Urls. Separate API URLs by spaceUPSTREAM_REPO
Add the Upstream Repo of your Bot for automatic updationUPSTREAM_BRANCH
Select the Upstream Branch of your Bot for automatic updationNOTE: Fill the above values in config.env
or use them as Environment Variables.
start - Bot Start Message
help - Alias command for start
dalle - Generate images from a text prompt using DALLE-Mini
upload - Upload a Telegram File to various Free File Hosting Servers
bifm - Bypass Short Links using BIFM API
direct - Get Direct Link for various Supported URLs
bvip - Bypass Short Links using Bypass.vip API
bypass - Bypass Various Supported Shortened URLs
multi - Bypass Short Links using PyBypass Library
shorten - Get AdFree Shortened URLs of your Link
magnet - Extract Magnet from Torrent Websites
index - Extract Direct Links from Bhadoo Index Folder URLs
scrape - Extract Direct Links from Supported Sites
ytdl - (or /ytdlp) Extract DL Links using YT-DLP
gd - (or use /clone) Get GDrive Links for various Drive File Sharer
headfone - Scrape Headfone.co.in to get Direct Links of an Album
hungama - Get Download link and Metadata of a Hungama Link
image2pdf - Convert Image to PDF
rename - Rename a File in Telegram
tgupload - Upload a File to Telegram
takess - Take ScreenShot of a Webpage
wayback - Generate WayBack of a Webpage
https://mongodb.com/
and sign-up.Database
under Deployment
Header, your created cluster will be there.Allow Access From Anywhere
and press on Add IP Address
- Put '0.0.0.0', then create user.Choose a connection
, then press on Connect your application
. Choose Driver
python and version
3.6 or later.connection string
and replace <password>
with the password of your user, then press close.# | Host | Limit |
---|---|---|
1 | anonfiles | 20 GB |
2 | Catbox | 200 MB |
3 | file.io | 2 GB |
4 | Filemail | 5 GB |
5 | Gofile | unlim |
6 | KrakenFiles | 1 GB |
7 | LetsUpload | 10 GB |
8 | MegaUp | 5 GB |
9 | MixDrop | unlim |
10 | pixeldrain | 10 GB |
11 | Racaty | 10 GB |
12 | transfer.sh | unlim |
13 | Uguu | 128 MB |
14 | WeTransfer | 2 GB |
15 | workupload | 2 GB |
16 | zippyshare | 500 MB |
Run program totally for free on Koyeb with single click deployment button!
Deploy
.Micro
instance type since it requires 512 RAM.Flask
to listen on port 8080
.MultiFunctionBot can be deployed almost everywhere using Docker
->docker pull ghcr.io/missemily22/multifunctionbot:main
->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.
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
git clone https://github.com/missemily22/MultiFunctionBot
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
.
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
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.
Create
and then select an application
from the list.Docker
.😘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.Paris France
for lower ping (tested!😉).I DON'T NEED ANY ADD-ONS
because... you already know it!🌟 still why? it is designed for low end systems.Domain Names
tab and for logs you can check Logs
tab.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.
main
and add following value carefully:
Add your Environment Variables
one by one
⛔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.
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.
->Python 3 or above with pip
->Git
->git clone https://github.com/missemily22/MultiFunctionBot
->cd MultiFunctionBot
->pip install -r requirements.txt
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
->cd MultiFunctionBot
->python -m bot
->Press CTRL
+ C
keys