Files
homelab-docs/scripts/telegram-notify.env.example
Andrey f319133cee Add notification feature to backup scripts for various services
Enhance backup scripts for Nextcloud, Gitea, Paperless, Vaultwarden, Immich, and VPS configurations by adding Telegram notifications upon completion. Include details such as backup size and objects backed up. Update backup documentation to reflect these changes and ensure clarity on backup processes and retention policies.
2026-02-27 20:42:30 +03:00

14 lines
907 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Пример конфига для уведомлений в Telegram (скрипт notify-telegram.sh).
# Скопируйте на хост Proxmox в /root/.telegram-notify.env и подставьте свои значения.
#
# Как получить:
# 1. Создать бота: в Telegram написать @BotFather, команда /newbot, получить токен.
# 2. Узнать chat_id: написать боту любое сообщение, затем открыть в браузере:
# https://api.telegram.org/bot<TOKEN>/getUpdates
# В ответе в updates[].message.chat.id — ваш chat_id (число или отрицательное для групп).
#
# На хосте: cp telegram-notify.env.example /root/.telegram-notify.env && chmod 600 /root/.telegram-notify.env
TELEGRAM_BOT_TOKEN=123456789:ABCdefGHIjklMNOpqrsTUVwxyz
TELEGRAM_CHAT_ID=123456789