liiight/notifiers

edit messages

casperdcl opened this issue · 1 comments

Option to edit a message for supported providers (e.g. slack, telegram, etc.)

solution proposed

msg = notifiers.get_notifier('telegram').notify(message='Hi!', token='TOKEN', chat_id=1234)
...
msg.edit(message='hello?')

alternatives:

  • sending multiple messages/replies
  • using a different library: tqdm.contrib (supports slack, discord, telegram)

originally, I thought about this but decided its outside the scope of the library. on 2nd thought, this could probably be an easy implementation as most providers provide an identifier on response and more often than not, the internal implementation required for updating an existing message is pretty close to a new message, schema wise.

I'll give this some though 👍