feat: EmailManager initial commit — Python Google APIs (Gmail, Calendar), Telegram Bot API, Ollama (local LLM), Craigslist RSS, OpenStreetMap/Overpass

This commit is contained in:
2026-07-03 12:15:46 -04:00
commit 8e3216957c
9 changed files with 2407 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import urllib.request, urllib.parse, json, os
TELEGRAM_TOKEN = os.environ.get('TELEGRAM_TOKEN', '')
TELEGRAM_CHAT_ID = os.environ.get('TELEGRAM_CHAT_ID', '')
msg = (
'\U0001F514 <b>RECORDATORIO</b>\n\n'
'Esperar llamada de <b>Jaime Otero</b>\n'
'Hora: <b>12:00 PM</b>'
)
params = {
'chat_id': TELEGRAM_CHAT_ID,
'text': msg,
'parse_mode': 'HTML',
'disable_notification': 'false',
}
data = urllib.parse.urlencode(params).encode()
url = f'https://api.telegram.org/bot{TELEGRAM_TOKEN}/sendMessage'
urllib.request.urlopen(urllib.request.Request(url, data=data), timeout=10)