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>
9 lines
477 B
Text
9 lines
477 B
Text
# 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
|