Skip to content

Wortexhf/tiktok_downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎵 TikTok Downloader Bot

A Telegram bot that downloads TikTok videos and sends them directly to you — no watermarks, no hassle.

Features

  • 📥 Downloads TikTok videos by URL
  • 🚫 No watermark (via yt-dlp)
  • 📤 Sends the video directly in Telegram chat
  • 🔒 Skips files over 50 MB (Telegram API limit)
  • 🧹 Auto-cleans up downloaded files after sending

Project Structure

tiktok-downloader/
├── .env               # Bot token (not committed)
├── .gitignore
├── requirements.txt   # Python dependencies
├── run.py             # Bot entry point (aiogram)
└── tiktokdata.py      # Video download logic (yt-dlp)

Requirements

  • Python 3.10+
  • A Telegram bot token from @BotFather

Setup

  1. Clone the repository

    git clone https://github.com/your-username/tiktok-downloader.git
    cd tiktok-downloader
  2. Install dependencies

    pip install -r requirements.txt
  3. Configure the bot token

    Create a .env file in the project root:

    BOT_TOKEN=your_telegram_bot_token_here
  4. Run the bot

    python run.py

Usage

  1. Start the bot in Telegram: /start
  2. Paste any TikTok video link (e.g. https://www.tiktok.com/@user/video/...)
  3. The bot will download and send the video with the title and author name

Limitations

  • Videos larger than 50 MB cannot be sent via the Telegram Bot API and will be rejected
  • Only public TikTok videos are supported

Dependencies

Package Purpose
aiogram Telegram bot framework
yt-dlp Video downloading engine
python-dotenv Loading environment variables

License

MIT

About

download video from tiktok

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages