项目作者: captaincolonelfox

项目描述 :
Telegram bot to download TikTok videos
高级语言: Python
项目地址: git://github.com/captaincolonelfox/TeleTok.git
创建时间: 2021-02-13T21:50:39Z
项目社区:https://github.com/captaincolonelfox/TeleTok

开源协议:MIT License

下载


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

  1. $ python3 -m venv venv
  2. $ (venv) pip install -r requirements.txt
  3. $ (venv) echo "API_TOKEN=foo:bar" >> .env
  4. $ (venv) export $(cat .env)
  5. $ (venv) python app

Docker

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

Docker Compose

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

License

MIT