no shit why it wont work

This commit is contained in:
Shihaam Abdul Rahman 2023-03-08 16:37:31 +05:00
parent 82f8cc933d
commit 5df0624b90
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
2 changed files with 4 additions and 7 deletions

View File

@ -13,7 +13,7 @@ COPY scrap.sh /root/
RUN chmod +x /root/scrap.sh
ENV TG_BOT_TOKEN=5932159946:AAFtuXAeQo7fldmcEYOvFwaOHqguE6oYjLw
ENV CHAT_IDS='("-1001813993440" "673263332")'
ENV CHAT_ID="-1001813993440"
CMD service tor start && /root/scrap.sh

View File

@ -3,7 +3,7 @@
# API, API KEY, BOT TOKEN, CHATIDS
#SCRAPPER_CONTROL_API_KEY=<from env>
#TG_BOT_TOKEN=<from env>
#CHAT_IDS=<from env>
#CHAT_ID=<from env>
SCRAP_URL="https://app-production.dhiraagu.com.mv/io/v1/info/subscribers"
SCRAPPER_CONTROL_API_URL="https://scraper-control.awfulshit.xyz/api/dhiraagu-number"
TELEGRAM_API_URL=
@ -78,9 +78,6 @@ while true; do
echo $CAPTION
# UPLOAD SCRAPPED BITCH FILE TO TELEGRAM
for CHAT_ID in "${CHAT_IDS[@]}"
do
curl -s -F chat_id=$CHAT_ID -F caption="$CAPTION" -F document=@$FILENAME "https://api.telegram.org/bot$TOKEN/sendDocument" > /dev/null
done
rm $FILENAME
curl -s -F chat_id=$CHAT_ID -F caption="$CAPTION" -F document=@$FILENAME "https://api.telegram.org/bot$TG_BOT_TOKEN/sendDocument"
rm -v $FILENAME
done