Skip to content
rumkitPublic

About

Telegram bot for interacting with TorrServer

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

Telegram TorrServer Bot

Build-Test-Publish Flow

Description

A primitive Telegram bot for interacting with the TorrServer (https://github.com/YouROK/TorrServer). The bot supports the following commands:

  • /add receives a magnet link or an http link to a page with the magnet link inside. The magnet link is added to the TorrServer using its API.
  • /list list all torrents saved on the server. When the user clicks on any of the results, the bot sends a playable link per each file in the torrent.

The bot is build on top of the Minimal Telegram Bot: https://github.com/k-paul-acct/minimal-telegram-bot

Docker Compose

Use the following example to quickly spin up the bot using the compose.yaml file. Keep in mind that TorrServer instance needs to be accessible for the bot app.

name: TTS bot
services:
  ttsbot:
    image: ghcr.io/rumkit/telegram-torrserver-bot:latest
    build:
      context: .
      dockerfile: TTSbot/Dockerfile
    environment:
      BotToken: #telegram bot token
      TorrServer__User: #torrserver user
      TorrServer__Password: #torrserver password
      TorrServer__Url: #torrserver url e.g. http://127.0.0.1:8080
      TorrServer__RewriteUrl: #OPTIONAL if provided, the bot will use this url when generating playable links. Useful when the bot runs on the same host as the TorrServer
      Telegram__AllowedChatId: #OPTIONAL if provided, the bot will process any commands only from the specified chat

About

Telegram bot for interacting with TorrServer

Resources

Stars

1 star

Watchers

0 watching

Forks

Packages

Contributors

Languages