A flimsy bot to stream anime in a Telegram channel!
Find a file
2025-05-17 18:53:52 +02:00
.idea add bash 2025-05-02 20:40:32 +02:00
src killing is more ruthless 2025-05-17 18:53:52 +02:00
.dockerignore add docker and docker compose 2025-05-02 20:06:09 +02:00
.gitignore add code 2025-05-02 18:32:39 +02:00
docker-compose.yml fix .env problem 2025-05-02 20:32:43 +02:00
Dockerfile dependencies and python fix 2025-05-02 20:52:14 +02:00
LICENSE Create LICENSE 2021-06-09 17:56:54 +05:30
README.md perf 2025-05-02 20:11:32 +02:00

ani-cli-telegram

Important

Only works on systems that can execute bash scripts and use ffmpeg.

What is it?

Watch any anime with friends on your Telegram group. You can use the /anime command to launch the streaming of an anime.

Requirements

  • ffmpeg
  • python3

Quickstart

  1. Make a telegram bot
  2. Put the bot token and the stream url in a .env file at the root of the project as so:
BOT_TOKEN=...
STREAM_URL=...
  1. Setup python. (make a venv and pip install -r requirements.txt in the src directory)
  2. Launch the src/main.py file.
  3. Launch the stream from your telegram client. You can now use the bot
  4. /help on your telegram group

Stream URL

  1. Go to your group.
  2. Go to the stream settings.
  3. Copy the 'Stream Key' and the 'Server URL'.
  4. Populate the .env's STREAM_URL with this format: <stream_key><server_url> E.g.: STREAM_URL=rtmps://bv7-3.rtmp.t.me/s/9264019635:f87dKLOz61Pb7-3lfm8ijz

Bot Token

  1. https://www.siteguarding.com/en/how-to-get-telegram-bot-api-token
  2. Bot Settings > Group Privacy > then disable the privacy mode.
  3. Invite your bot to your group. If you've already invited it, kick him and re-invite it.

Docker

  1. Populate the .env file at the root of the project.
  2. COMPOSE_BAKE=true sudo docker compose up -d --build

Completeness & Quality

"Quick and dirty".

Acknowledgements

Forked from pystardus's ani-cli repository.