close
Skip to content

Urpagin/ani-cli-telegram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

788 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Contributors

Languages

  • Shell 76.1%
  • Python 21.4%
  • Dockerfile 2.5%