krol44 / tg-bot

Telegram Bot Downloader, Torrent Client, Youtube, Tiktok, etc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TgBot - Telegram bot

Telegram Bot Downloader, Torrent Client, Youtube, Tiktok, etc 🔥

Support

Torrent, youtube.com, tiktok.com, vk.com/video, twitch.tv/videos, twitch.tv/*****/clip, rutube.ru/video, coub.com/view, open.spotify.com/track, open.spotify.com/album and etc

Setup

  1. cd /home
  2. git clone https://github.com/krol44/tg-bot
  3. cd /home/tpb && mkdir storage
  4. mkdir storage/telegram-bot-api-data && mkdir storage/bot-data && mkdir storage/postgres-data
  5. nano .env.secrets
COMPOSE_PROJECT_NAME=tpb
DEV=false
BOT_DEBUG=false
STORAGE_PATH=/home/tpb
TELEGRAM_STAT=1
TELEGRAM_API_ID=0000000
TELEGRAM_API_HASH=aaaaa...
BOT_TOKEN=00000:AAAAAA....
POSTGRES_PASSWORD=demo_pass
CHAT_ID_CHANNEL_LOG=-000000
DOWNLOAD_LIMIT=30000000
WELCOME_VIDEO_ID=BAACAgIAA.....
  1. nano dc-without-vpn.yml
if you have Nvidia NVENC, you may uncomment
runtime: nvidia
  1. ./build-without-vpn

Info

TELEGRAM_API_ID, TELEGRAM_API_HASH
get tg api key - https://my.telegram.org/auth?to=apps
BOT_TOKEN - get from @BotFather
POSTGRES_PASSWORD - change password for postgresSQL
CHAT_ID_CHANNEL_LOG - for logs, who uses the bot
DOWNLOAD_LIMIT - speed download torrent
WELCOME_VIDEO_ID - tg file id, video hello when used command /start

About

Telegram Bot Downloader, Torrent Client, Youtube, Tiktok, etc


Languages

Language:Go 99.1%Language:Dockerfile 0.5%Language:Shell 0.4%