Update install.sh
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user