moira-alert / notifier

[DEPRECATED]
GNU General Public License v3.0
16 stars 8 forks source link

Telegram notifier improvements #17

Closed titusjaka closed 7 years ago

titusjaka commented 8 years ago

Hi guys,

This ticket is opened for the future and its aim is to start a discussion.

The point is that telegram notifier configuration is too complicated for the end user:

Why I don't like the current way:

The way I suggest:

Pros and cons of that way:

I would like to see your thoughts about this thread. Thank you!

gmlexx commented 8 years ago

Does this mean, that we need to host telegram bot somewhere?

titusjaka commented 8 years ago

Unfortunately it seems so.

gmlexx commented 8 years ago

And how are you going to share this bot across multiple installations? Or you assume, that setup telegram bot will be much easier, than current approach?

titusjaka commented 8 years ago

Setup telegram bot is one-time operation which is made by Moira admin.

gmlexx commented 8 years ago

So, the remaining pros is only "private message"

beevee commented 8 years ago

as user wants to receive notification, he finds that bot and press Start. Since that moment bot has access to user's credentials

Does it? To what kind of credentials - username, phone number? I couldn't find it in the docs.

titusjaka commented 8 years ago

At least it seems so: https://core.telegram.org/bots/api#message As I see there is from field in every message including start message. This filed contains User details.

Also, I found this thing: https://core.telegram.org/bots/inline I'm not sure, but it looks like something we could use for group chats. I'll find out and let you know if it fits us.

beevee commented 8 years ago

Yes, but this User consists of:

  1. Some mysterious id.
  2. Optional first/last name.
  3. Optional username.

What would you do with this id? I bet it's not a phone number, for example.