Looking for an easy way to download TikTok or Instagram content? I'm proud to present an open-source Telegram bot written in 🦀Rust🦀 using the Teloxide🤖 library. This bot allows you to effortlessly download content by simply sending a link.
- TikTok Download API Key
- Instagram Bulk Scraper API Key
- Telegram Bot Token
- Windows 10 x64 or Ubuntu x64
- Docker
Firstly, create a file named .env
with this structure:
BOT_TOKEN=...
BOT_NAME=your_telegram_bot_username
LOG_LEVEL=...
TIKTOK_API_KEY=...
INSTAGRAM_API_KEY=...
If you want to change the log level (default is ERROR
), set the LOG_LEVEL variable to the desired level (error
, warn
, info
, debug
, trace
, off
).
Place it in the location specified in the instruction for the preferred method.
Then clone the repo if you want to use method 2 or 3:
git clone https://github.com/xairaven/MediaFetchBot.git
Download the archive from the latest release corresponding to your OS.
In the archives, there is only one file — the executable. Place .env
in the same folder.
Place .env
in <repo_folder>/media_fetch_bot/
.
Change bot_username
in Dockerfile:
# Your app name (write same name to both)
ARG APP_NAME_ARG=...
ENV APP_NAME_ENV=...same
Then, in the repo folder:
cd media_fetch_bot
docker build -t <come-up-with-image-name> .
docker run --name <come-up-with-container-name> <your-image-name>
For this, you'll need rust
compiler and cargo
.
You can find the installation instructions here
.
Place .env
in <repo_folder>/media_fetch_bot/
.
After that, when you open the folder:
cd media_fetch_bot
cargo run
Congrats!🥳 The bot is working now.
/help
— Instruction. You can also change localization text. For that, change the text inmedia_fetch_bot/locales/en.json
.- TikTok or Instagram Link — Get your content! Videos, Photo Slides, Instagram Photos, Reels and Stories available.
Contributions are welcome! 🎉
It's better to create an issue with description of your bug/feature before creating pull requests.
This project uses TBD git strategy.
Each contributor should have a branch. Naming example: feat/<nickname>