Since the Line Notify service has been discontinued, this Python script uses Line Works as an alternative method for sending notifications.
python --version # Python 3.13.3
pip install -r requirements.txtuvicorn return-line-notify.main:app --host 0.0.0.0 --port 3333or
python -m return-line-notify.maindocker run -d -p 3333:3333 -e WORKS_ID="admin@example" -e PASSWORD="password" ghcr.io/fa0311/return-line-notify/return-line-notify-docker:latestimport requests
API_URI = "http://127.0.0.1:8000/api/notify"
headers = {"Authorization": "Bearer 336355274:10"}
data = {"message": "test"}
requests.post(API_URI, headers=headers, data=data)This project is inspired by and references the following open-source project:
