mirror of
https://github.com/Urpagin/ani-cli-telegram.git
synced 2025-08-21 13:58:02 +02:00
A flimsy bot to stream anime in a Telegram channel!
.idea | ||
src | ||
.dockerignore | ||
.gitignore | ||
docker-compose.yml | ||
Dockerfile | ||
LICENSE | ||
README.md |
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
- Make a telegram bot
- Put the bot token and the stream url in a
.env
file at the root of the project as so:
BOT_TOKEN=...
STREAM_URL=...
- Setup python. (make a venv and
pip install -r requirements.txt
in the src directory) - Launch the
src/main.py
file. - Launch the stream from your telegram client. You can now use the bot
/help
on your telegram group
Stream URL
- Go to your group.
- Go to the stream settings.
- Copy the 'Stream Key' and the 'Server URL'.
- Populate the
.env
'sSTREAM_URL
with this format:<stream_key><server_url>
E.g.:STREAM_URL=rtmps://bv7-3.rtmp.t.me/s/9264019635:f87dKLOz61Pb7-3lfm8ijz
Bot Token
- https://www.siteguarding.com/en/how-to-get-telegram-bot-api-token
- Bot Settings > Group Privacy > then disable the privacy mode.
- Invite your bot to your group. If you've already invited it, kick him and re-invite it.
Docker
- Populate the
.env
file at the root of the project. COMPOSE_BAKE=true sudo docker compose up -d --build
Completeness & Quality
"Quick and dirty".