Bot that downloads tiktok videos (via tikwm) to telegram. Working on Cloudflare Workers.
Demo: @tiktok_chat_yep_bot
Install bot on already existing environment.
You can install your bot to already existing environment by executing/addbot
command with token in @tiktok_chat_yep_bot.
For example:
/addbot 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
.
Warning: you will not be able to use the bot for your own purposes until you uninstall it:
/delbot 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
- Create cloudflare account
- Install Wrangler
- Clone repository
git clone https://github.com/RuslanUC/telegram-tiktok-bot
cd telegram-tiktok-bot
- (Optional) Change SECRET_KEY in wrangler.toml
- Upload bot to CF
wrangler publish
- Create telegram bot
- Set bot webhook. Replace <BOT_TOKEN> with your bot token, <WORKER_URL> with CF worker url, <SECRET_KEY> with secret key in this link and open it:
https://api.telegram.org/bot<BOT_TOKEN>/setWebhook?url=https://<WORKER_URL>/<BOT_TOKEN>/tt_bot&allowed_updates=[%22message%22]&secret_token=<SECRET_KEY>
- Done! Now you can send TikTok link to your bot, and it should respond with video