Skip to content

murlock1000/MatrixNotificationBot

Repository files navigation

Messenger-Bot Built with matrix-nio

Notification API for Matrix Synapse Element implemented through a matrix bot. Supports text and media messages.

API commands:

  • Send a text message to a specific recipient:
curl -k -X POST -H "Content-Type: text/plain" -H 'Send-To: @recipient:example.com' -H "Api-Key-Here: Supersecretkey123" --data "Test message" https://127.0.0.1
  • Send a file to a specific recipient:
curl -k -X POST -H "Content-Type: image/png" -H 'Send-To: @recipient:example.com' "Api-Key-Here: Supersecretkey123" -H "File-Name: yourFile.png" --data-binary @./yourFile.png https://127.0.0.1
  • Send a message to the management channel - omit the Send-To header.

Getting started

See SETUP.md for how to setup and run the project.

License

Apache2

About

API for submitting notification requests to a matrix room

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published