Added credentials for telegram bot

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-15 20:36:16 +02:00
parent f6c767f122
commit ac3bc5742d
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,2 @@
telegram_bot_token: '' # The token of your telegram bot
telegram_chat_id: '' # The id of your telegram chat

View File

@ -1,3 +1,15 @@
- name: Fail if Telegram bot credentials are not set
assert:
that:
- telegram_bot_token != ""
- telegram_chat_id != ""
fail_msg: |
Telegram configuration is incomplete!
Please provide nonempty values for:
- telegram_bot_token # Your Telegram bots API token
- telegram_chat_id # The Telegram chat ID to send messages to
when: run_once_systemd_notifier_telegram is not defined
- name: install curl - name: install curl
pacman: pacman:
name: curl name: curl