Twitch stream notify bot for Telegram with Docker

Telegram port of the Discord notifier: tokenless decapi.me status checks,
photo+caption announce with inline link buttons, /stream_test command.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
2026-07-13 11:39:33 +03:00
co-authored by Claude Opus 4.8
commit c63b51ff79
8 changed files with 356 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM python:3.12-slim
# Не создавать .pyc и не буферизовать stdout (чтобы логи шли в реальном времени)
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
# Сначала зависимости — для кэша слоёв
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Затем код
COPY bot.py .
# Запуск от непривилегированного пользователя
RUN useradd --create-home appuser
USER appuser
CMD ["python", "bot.py"]