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)
- USER_ID - To give access only to specific user id (default: empty = all users)
- SENTRY_DSN - To send unhandled exceptions to Sentry (default: empty = no reports)
- ENVIRONMENT - Sentry environment variable (default: Local)
- USER_AGENT - To override user-agent used to download videos (default: random every time)
$ git clone https://github.com/captaincolonelfox/TeleTok
$ python3 -m venv venv
$ (venv) pip install -r requirements.txt
$ (venv) echo "API_TOKEN=foo:bar" >> .env
$ (venv) export $(cat .env)
$ (venv) python main.py
$ docker build -t teletok .
$ docker run -e "API_TOKEN=foo:bar" teletok
MIT