eknoes / covidbot

Multi-platform messenger bot which provides updates on current COVID19 situation for Germany
https://covidbot.d-64.org
GNU General Public License v3.0
48 stars 8 forks source link

Support Whatsapp #1

Open eknoes opened 3 years ago

eknoes commented 3 years ago

Soweit ich das sehe kann es schwer werden mit anderen Messengern - so eine schöne Bot API bspw. mit Buttons gibt es nicht, bei Threema würde das Nachrichten versenden je 2ct kosten. Signal könnte ich mir mit bspw. https://github.com/AsamK/signal-cli oder https://github.com/kbin76/signal-cli-python-api vorstellen. Für E-Mail müssten wir uns ein Authentifizierungsschema / Nutzerverwaltungsschema überlegen, das händelt aktuell ja auch Telegram.

eknoes commented 3 years ago

Mit https://www.sipgate.io/pricing könnten wir sogar kostenlos SMS empfangen und hätten dann einen Signal Bot!

errotu commented 3 years ago

Das wäre natürlich ziemlich cool. Für den Threema-Gateway sind wir jetzt testweise auch freigeschaltet. Ich habe noch überlegt, ob man nicht vielleicht das ganze über einen Matrix-Bot umsetzen könnte, den man dann über Bridges an alle möglichen Messenger anschließt.

eknoes commented 3 years ago

Ich hab mir das mal angesehen, ich glaube der Aufwand das als Matrix Bot zu bauen und dafür dann die Bridges zu konfigurieren ist eher höher, als neue Messenger anzuschließen. Threema gibt es bspw. nicht als Bridge, und wir haben nur ~100 Zeilen Code gebraucht. Ich denke wir haben jetzt ein ganz gutes (eigenes) Framework, um schnell neue Messenger anzuschließen. Der Aufwand war eher, das einmalig möglich zu machen, also dass bspw. unser Nutzermanager generell verschiedene Plattformen unterstützt, etc.

Theoretisch könnten wir überlegen, ob wir unsere Signalnummer auch für WhatsApp versuchen zu nutzen, mit https://github.com/Rhymen/go-whatsapp

Wobei das insofern blöd ist, als dass es da kein Python Framework für gibt.

Ansonsten könnten wir noch überlegen auf Twitter zu gehen - sei es entweder nur mit einem täglichen Update mit Grafik für die Inzidenzzahlen für DE, oder sogar als Bot über DMs. Welche Plattformen hast du noch im Kopf? Meinst du, E-Mail ist noch relevant?

errotu commented 3 years ago

Okay, danke für die Einschätzung! Twitter wäre nett, wenn es nicht zu viel Aufwand ist. Das eigentliche Feature, die Personalisierung, würde da ja aber nicht klappen. E-Mail ist wahrscheinlich auch nicht so wichtig. Whatsapp wäre aufgrund der Verbreitung wirklich noch super! Hast du Sulla schon gesehen?

eknoes commented 3 years ago

E-Mail scheidet auch doch eher aus:

Massenmailings wie z.B. Newsletter sind nicht erlaubt. https://uberspace.de/de/about/houserules/

Ja, WhatsApp scheint doch echt möglich zu sein. Wenn ich die Zeit finde schaue ich mir das mal an!

linux-lukas commented 3 years ago

The implementation of WhatsApp could lead to more people using this messenger again, which is critical from a data protection point of view. I think it would make sense to expand data protection-friendly options.

linux-lukas commented 3 years ago

In a [circular of 14 April 2020 to all federal ministries and supreme federal authorities](https://www.bfdi.bund.de/DE/Infothek/Transparenz/Stellungnahmen/2020/Rundschreiben-Nutzung-WhatsApp. html), he points out that although he sees the justified endeavour of the Federal Government to reliably inform the population in times of increased dissemination of targeted false information (in connection with the coronavirus SARS-CoV-2 and the resulting disease COVID-19) in social media, if WhatsApp is resorted to for this purpose, this primarily shows that so far it has been neglected to implement a data protection-friendly service among the population and refers to his 27th activity report (from page 108 following).