no shit why it wont work
This commit is contained in:
parent
82f8cc933d
commit
5df0624b90
@ -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
|
||||
|
||||
|
9
scrap.sh
9
scrap.sh
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user