added suppprt for telegram upload
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
prayer_added.png
|
prayer_added.png
|
||||||
|
.env
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
# Telegram Config
|
||||||
|
TG_BOT_TOKEN='' #Your Telegram Bot API Token, Contact @BotFather on Telegram to obtain token
|
||||||
|
TG_CHATID='' #Your Telegram chat ID, This could be your user, group, supergroup or channel ID, add "-100" first if supergroup or channel
|
||||||
|
|
||||||
|
# DO NOT EDIT THESE UNLESS YOU KNOW WHAT YOURE DOING
|
||||||
|
TG_BOTAPI='https://api.telegram.org/bot'
|
||||||
+2
-2
@@ -48,7 +48,7 @@ then
|
|||||||
INPUT=$OUTPUT
|
INPUT=$OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Prayer=$PRAYER DayOfYear=$DAY_OF_YEAR Time=$TIME File=$OUTPUT
|
echo Prayer=$PRAYER DayOfYear=$DAY_OF_YEAR Time=$TIME File=$INPUT
|
||||||
|
|
||||||
convert $INPUT \
|
convert $INPUT \
|
||||||
-font $PWD/CourierPrime.ttf \
|
-font $PWD/CourierPrime.ttf \
|
||||||
@@ -72,4 +72,4 @@ imagemagick $(human $Asr) asr
|
|||||||
imagemagick $(human $Maghrib) magrib
|
imagemagick $(human $Maghrib) magrib
|
||||||
imagemagick $(human $Isha) isha
|
imagemagick $(human $Isha) isha
|
||||||
|
|
||||||
feh $OUTPUT
|
curl -s -F photo=@$OUTPUT $TG_BOTAPI$TG_BOT_TOKEN/sendphoto?chat_id=$TG_CHATID
|
||||||
|
|||||||
Reference in New Issue
Block a user