Update install.sh

This commit is contained in:
2025-06-19 13:08:39 +00:00
parent dfc4557d26
commit 909c11614b

View File

@@ -130,8 +130,8 @@ function clone_and_build() {
echo -e "${YELLOW}📨 Enter your Telegram bot token:${NC}"
read -rp "🔑 TELEGRAM_TOKEN: " token
echo -e "${YELLOW}🤖 Auto detecting the Telegram chat-ID...${NC}"
auto_chat_id=$(curl -s "https://api.telegram.org/bot$token/getUpdates" | grep -oE '"id":-100[0-9]+' | head -n1 | cut -d: -f2)
echo -e "${YELLOW}🤖 Auto detecting the Telegram chat-ID...${NC}"
auto_chat_id=$(curl -s "https://api.telegram.org/bot$token/getUpdates" | grep -oE '"id":[0-9-]+' | head -n1 | cut -d: -f2)
if [ -n "$auto_chat_id" ]; then
echo -e "${GREEN}✅ Auto-detected chat ID: $auto_chat_id${NC}"