🌏 English | Русский |
TikTok Video Downloader Bot Project is an automated bot for the Telegram messenger, designed to download videos from the popular TikTok platform using the links provided.
- Ease of use: To download a video, just send the bot a link to the video from TikTok, after which the user receives the requested video in a response message.
- Automated process: The bot notifies the user about all stages of video downloading, providing transparency and ease of use.
- Support for Poling and Webhook modes: The bot can work in two modes: Poling for easy installation on a local server and Webhook for integration with cloud platforms, providing flexibility and scalability.
- Limited access: It is possible to configure the bot in such a way so that it is accessible only to the administrator, providing an additional level of security and control.
To install and run the bot on your own server, follow the instructions:
- Clone the project repository to your local computer
git clone https://github.com/te4gh0st/TGTikTokDownloader.git
- Install the required dependencies specified in the requirements.txt
file
python3 -m pip install -r requirements.txt
. - Create a bot in Telegram via BotFather.
- Get the bot token and configure the environment variables.
- Run the bot
python3 main.py
.
ENV | Required | Default | Description |
---|---|---|---|
TOKEN | + | - | Telegram Bot Token |
WEBHOOK_ACTIVE | - | 0 | Operating mode 0: Poling | 1: Webhook |
WEBHOOK_HOST | +- | - | Domain - https-only (Example: https://example.com) |
WEBHOOK_PATH | +- | - | Url path (Example: /webhook) |
WEBAPP_HOST | - | localhost | Host on which the application is running |
WEBAPP_PORT | +- | - | Port on which the application is running |
ADMIN_ID | - | 0 | Telegram ID of the user for whom the bot will work. If not specified, will work for everyone |
location = /webhook {
proxy_pass http://127.0.0.1:3001;
}
# Copy to /etc/systemd/systemd/system
#sudo systemctl enable <filename>.service
[Unit]
Description=Telegram TikTok Downloader
Requires=network.target
After=multi-user.target
[Service]
Type=simple
ExecStart=sudo python3 /<PATH>/TGTikTokDownloader/main.py # Need edit
WorkingDirectory=<PATH>/TGTikTokDownloader # Need edit
Restart=always
[Install]
WantedBy=multi-user.target