mqtt-tools / mqttwarn

A highly configurable MQTT message router, where the routing targets are notification plugins, primarily written in Python.
https://mqttwarn.readthedocs.io/
Eclipse Public License 2.0
958 stars 184 forks source link

[Facebook] Replace `fbchat` service with service based on `messenger-api-python` #579

Open amotl opened 2 years ago

amotl commented 2 years ago

Hi there,

coming from @orzechszek's request at #485, we may want to update the code to submit messages to the »Meta« Messenger Platform, which is the official API for chat bots on Facebook today.

It looks like the HTTP calls outlined on [1,2] would be the right way to submit messages these days, when doing it with HTTP only. However, I discovered three libraries on PyPI in this space:

I think messenger-api-python is the most prolific one. Maybe @caronc also wants to have a look in order to add a corresponding adapter to Apprise.

With kind regards, Andreas.

[1] https://developers.facebook.com/docs/messenger-platform/send-messages [2] https://developers.facebook.com/docs/messenger-platform/reference/send-api

caronc commented 2 years ago

I love your ability to find libraries and tools online @amotl . I don't want to hijack this thread, but i will investigate the links you shared! 👍🚀

amotl commented 2 years ago

Thanks Chris. Feel free to create a corresponding ticket over at Apprise and link it back to here.

amotl commented 2 years ago

Dear @orzechszek,

may I humbly ask if you would feel capable enough to contribute such a plugin, based on messenger-api-python, to mqttwarn?

With kind regards, Andreas.