Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/captaincolonelfox/teletok
- Owner: captaincolonelfox
- License: mit
- Created: 2021-02-13T21:50:39.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-26T11:09:25.000Z (7 months ago)
- Last Synced: 2024-10-11T11:13:22.236Z (3 months ago)
- Topics: aiogram, bot, telegram, telegram-bot, tiktok
- Language: Python
- Homepage: https://t.me/TeleTockerBot
- Size: 67.4 KB
- Stars: 48
- Watchers: 2
- Forks: 48
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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