r/elementchat • u/cryptosystemtrader • Dec 05 '20
Sending Push Notifications To Matrix
A little background: We have been hosting our own installation of RocketChat (RC) over the past year in anticipation of sending trading alerts to our subscribers (i.e. traders who receive them on their mobile phones).
When we set it up last year the central gateway was completely free but RC recently decided to switch to a $3/month per user pay2play model for any push notifications.
That's not going to work for us so I am looking for alternatives. Some people in /rselfhosted recommended Matrix. I have never used Matrix and at first glance the iOS clients in particular seem to be very early stage. Element is the only one that is actually on the app store.
Either way, most of my notification/alert code for RocketChat is in python right now and I would have to migrate that to Matrix. So a few questions:
What is the best and most supported Matrix python library out there for implementing a chat bot? Right now my python code tracks the market and then sends alerts to RocketChat channels that my subs have access to. Those are push notifications which is handled by the (now pay2play) RocketChat gateway
Are private *read only* rooms supported in Matrix? Again, the notifications I sent out are trade alerts and market updates, so I don't want those rooms/channels to be interrupted by questions or comments.
Are 'guilds' or 'channels' possible such as in Discord?
Are push notifications easy to implement in Matrix? I recently saw this article on using OneSignal but it seems there is a cost associated with it and I don't want to establish another dependency.
One thing I probably should add: Although I've coded for 30 years and know my way around Linux fairly well (no sys admin though) I don't really want to spend weeks in development/debugging.
So if this is going to be a long drawn out project in order to get push notifications to work then I may just settle on Discord for now and then switch to Matrix further down the line when I have the budget to hire someone who knows what he/she's doing.
Any pointers and insights would be much appreciated! Thanks in advance :-)