Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/captaincolonelfox/teletok

Telegram bot to download TikTok videos
https://github.com/captaincolonelfox/teletok

aiogram bot telegram telegram-bot tiktok

Last synced: about 1 month ago
JSON representation

Telegram bot to download TikTok videos

Awesome Lists containing this project

README

        

[![TeleTok](logo.jpg?raw=true)](https://t.me/TeleTockerBot)

# [TeleTok](https://t.me/TeleTockerBot): 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](https://github.com/aiogram/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

```bash
$ 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

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

## Docker Compose

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

# License

MIT