Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
/ trtmp Public archive

Go live easily and stream videos in Telegram channels.

License

Notifications You must be signed in to change notification settings

callsmusic/trtmp

Repository files navigation

TRTMP

A bot for streaming in Telegram live streams.

Get Started

Use a Cloud Platform

Heroku

Manually

Prerequisites

Install

  1. Create a new directory.
mkdir trtmp && cd $_
  1. Download a binary from the latest release. If you’re on Debian or a Debian-based Linux distribution, you can just run the following:
curl -s https://raw.githubusercontent.com/callsmusic/trtmp/main/scripts/install.debian.sh | bash

Configure

In order to configure the bot, you have to set the following environmental variables:

  • BOT_TOKEN
  • RTMP_KEY
  • RTMP_URL

Or put them in a .env in the directory.

Run

chmod +x ./your_binary # Only for Unix-like systems.
./your_binary

Commands

Note: Commands are triggered with the "/" prefix.

stream

Starts streaming the provided video or URI leading to a media.

  • You can stream from 100+ platforms. Including popular ones like YouTube, Twitter, Facebook, etc.

  • There’s no limit in the duration of the provided media, it can be one second or a live stream.

  • If streaming, the stream should be stopped with /stop before using this command.

stop

Stops the active stream.

now

Tells who is currently streaming what.

License

You just DO WHAT THE FUCK YOU WANT TO.