Skip to content

devilevil1/TeleTok

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Deploy to Heroku

Deploy

Env

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

Local

$ 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

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

License

MIT

About

Telegram bot to download TikTok videos

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.0%
  • Dockerfile 2.6%
  • Procfile 0.4%