Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telegram Bot Integration #21

Open
AdrianSchneble opened this issue Apr 14, 2023 · 1 comment
Open

Telegram Bot Integration #21

AdrianSchneble opened this issue Apr 14, 2023 · 1 comment

Comments

@AdrianSchneble
Copy link

Ein Telegram-Bot wäre, neben E-Mails (siehe auch #3), eine super Möglichkeit um User über ihre Schichten zu benachrichtigen.
Hierfür gibt es mehrere Möglichkeiten/Dinge zu berücksichtigen:

  • Integration in Barchats & Co; Authentifizierung über hard-coded* Chat-IDs? Token-Authentifizierung im Bar-Chat, wo 50 Leute mitlesen, ist suboptimal. (* hard-coded heißt nicht, dass sie in diesem Repo committed sein müssen; stattdessen kann man ja ein separates Repo pflegen und/oder die IDs als Datei beim Start übergeben (--barchats=chats.json oder so)
  • Benachrichtigungen zu eigenen Schichten über Direktchat mit dem Bot: Authentifizierung über Token-Eingabe im Telegramchat, oder Verknüpfung des Telegram-Accounts im Shiftings-Profil über bspw. "@ Name". In allen Fällen muss der Nutzer den Bot manuell anschreiben / starten, da Bots aus Sicherheitsgründen nicht den Chat mit einem User initiieren können.

Theoretisch ist ein Bot auch als Thirdparty-Anwendung umsetzbar, wenn Schichten bspw. über eine Rest-API abgefragt werden können. Funktional besser & einfacher umzusetzen ist aber wahrscheinlich eine direkte Integration in Shiftings.

@schliz
Copy link

schliz commented Jul 8, 2024

Since every organization has their own users and admins, we could introduce a model for specifying when open shifts should be announced. We could allow this setting to be customized for every shift type.

Regarding the telegram bot: I would propose allowing multiple notification strategies. Shiftings already supports sending emails to organization members and we could re-use that. In addition to telegram channels, webhook support for Matrix or IRC would also be pretty neat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants