Add Telegram notification script for sending build artifacts
scripts/notify_telegram.sh sends a file (e.g. the debug APK) to a Telegram chat via Bot API sendDocument. Reads TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID from .telegram.env (gitignored, real credentials never committed) or the environment. Verified end-to-end: sent the current debug APK and confirmed delivery. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
0cc8d9b767
commit
bb80307479
2 changed files with 46 additions and 0 deletions
9
.telegram.env.example
Normal file
9
.telegram.env.example
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Copy to .telegram.env (gitignored) and fill in real values.
|
||||
# Used by scripts/notify_telegram.sh to send build artifacts (e.g. the APK)
|
||||
# to a Telegram chat after a successful build.
|
||||
|
||||
TELEGRAM_BOT_TOKEN=123456:ABC-DEF...
|
||||
# Numeric chat id of the person/group the bot should message. A bot can't
|
||||
# message you first — send it any message (e.g. /start) once, then run
|
||||
# `curl "https://api.telegram.org/bot<token>/getUpdates"` to find your chat id.
|
||||
TELEGRAM_CHAT_ID=123456789
|
||||
Loading…
Add table
Add a link
Reference in a new issue