Created
December 16, 2020 15:47
-
-
Save imankulov/408ea1eb2d681a413d140fe8c32cb259 to your computer and use it in GitHub Desktop.
A cron script to send Telegram notifications about the new menu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
menu=$(curl -s 'https://www.facebook.com/SambaNaGrelha' | \ | |
rg -o 'Bom dia estimados clientes hoje para prato do dia temos.*?Fazemos entregas ao domicílio' | \ | |
head -n1 | html2text) | |
curl -s "https://api.telegram.org/bot$BOT_ID/sendMessage?chat_id=$CHAT_ID" -d text="$menu" > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment