diff --git a/install.sh b/install.sh index 2ec8f83..fa218d0 100644 --- a/install.sh +++ b/install.sh @@ -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}"