This is a simple Telegram userbot that allows you to send video's to your friends even if you send them link to TikTok.
- Run bot, and login
- Send a TikTok video link to the chat
- The bot will download the video and send it back as a video file
The bot uses the request library to scrape the video download link from the TikTok page. It then downloads the video and uploads it to Telegram via Pyrogram.
git clone https://github.com/tilekm/tt2vid.git
cd tt2vid
pip install -r requirements.txt
- Obtain the API key by following Telegram’s instructions and rules at https://core.telegram.org/api/obtaining_api_id.
- Create file
.env
- Write in
.env
yourAPI_ID
andAPI_HASH
like this:
API_ID=YOUR_API_ID
API_HASH=YOUR_API_HASH
- Run
python tiktok_to_video.py
Contributions are welcome! Please open an issue or submit a pull request if you would like to contribute.
Some ideas for improvements:
- Improve performance
- Improve cache system
- Add blacklist and whitelist
- Rebuild README
- Improve error handling
This project is licensed under the MIT License. See the LICENSE file for details.
Maulitbek Tilek