Show bot token input when typing in Telegram setup wizard

Remove silent flag (-s) from read so users can see what they type.
This commit is contained in:
SamNet-dev
2026-01-31 12:37:02 -06:00
parent fbd2176b85
commit eedb61a22f

View File

@@ -5441,7 +5441,7 @@ telegram_setup_wizard() {
echo -e " outbound connections to api.telegram.org from this server." echo -e " outbound connections to api.telegram.org from this server."
echo -e " This traffic may be visible to your network provider." echo -e " This traffic may be visible to your network provider."
echo "" echo ""
read -s -p " Enter your bot token: " TELEGRAM_BOT_TOKEN < /dev/tty || { trap - SIGINT; TELEGRAM_BOT_TOKEN="$_saved_token"; return; } read -p " Enter your bot token: " TELEGRAM_BOT_TOKEN < /dev/tty || { trap - SIGINT; TELEGRAM_BOT_TOKEN="$_saved_token"; return; }
echo "" echo ""
# Trim whitespace # Trim whitespace
TELEGRAM_BOT_TOKEN="${TELEGRAM_BOT_TOKEN## }" TELEGRAM_BOT_TOKEN="${TELEGRAM_BOT_TOKEN## }"