TeleTok: Telegram bot for TikTok
This bot will send you a video from a TikTok. Pretty simple.
Just share a link to the chat (no need to mention the bot)
Built on top of aiogram
(REQUIRED)
API_TOKEN
- Bot token from BotFather
(OPTIONAL)
ALLOWED_IDS
- JSON int list. Gives access only to specific user/chat id (default:[]
(empty list) = all users/chats)REPLY_TO_MESSAGE
- JSON Boolean. Whether the bot should reply to source message or not (default:true
)WITH_CAPTIONS
- JSON Boolean. Whether the bot should include captions from TikTok in its message (default:true
)
$ python3 -m venv venv
$ (venv) pip install -r requirements.txt
$ (venv) echo "API_TOKEN=foo:bar" >> .env
$ (venv) export $(cat .env)
$ (venv) python app
$ docker build -t teletok .
$ docker run -e "API_TOKEN=foo:bar" teletok
$ echo "API_TOKEN=foo:bar" >> .env
$ docker compose up -d --build
MIT