Skip to content

captaincolonelfox/TeleTok

Repository files navigation

TeleTok

TeleTok: Telegram bot for TikTok

Description

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)

Thanks to

Built on top of aiogram

Installation

Env

(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)

Local

$ 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

$ docker build -t teletok .
$ docker run -e "API_TOKEN=foo:bar" teletok

Docker Compose

$ echo "API_TOKEN=foo:bar" >> .env
$ docker compose up -d --build

License

MIT