diff --git a/app.py b/app.py index 2457595..04a87e3 100644 --- a/app.py +++ b/app.py @@ -36,11 +36,6 @@ def orario(): number = str(range(0,7)) day = str(["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]) return render_template('orario/orario.html', data=dict, number=number, day=day) - -@app.route('/calendario') -def calendario(): - logging.info("A user went up: Calendario") - return render_template('html/calendario.html') if __name__ == '__main__': logging.info("Web server started!") diff --git a/src/bot/whatsapp/screenshot.png b/src/bot/whatsapp/screenshot.png new file mode 100644 index 0000000..0627f9f Binary files /dev/null and b/src/bot/whatsapp/screenshot.png differ diff --git a/src/bot/whatsapp/whatsapp_bot.py b/src/bot/whatsapp/whatsapp_bot.py index dceb4fa..022de03 100644 --- a/src/bot/whatsapp/whatsapp_bot.py +++ b/src/bot/whatsapp/whatsapp_bot.py @@ -1,5 +1,9 @@ +from selenium.webdriver.firefox.options import Options # Selenium +from selenium import webdriver # Selenium from dotenv import load_dotenv from twilio.rest import Client +import time +import subprocess import os load_dotenv() @@ -10,6 +14,11 @@ PHONE_NUMBER_PERSONAL = os.getenv('PHONE_NUMBER_PERSONAL') client = Client(SID, AUTH_TOKEN) -message = client.messages.create(to=PHONE_NUMBER_PERSONAL, - from_=PHONE_NUMBER_BOT, - body="Hello from Python!") \ No newline at end of file +message = client.messages \ + .create( + body="Test", + media_url=['IMAGE URL'], + from_=PHONE_NUMBER_BOT, + to=PHONE_NUMBER_PERSONAL + ) +print(message.sid) \ No newline at end of file