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

edit messages #440

Open
casperdcl opened this issue Jun 1, 2022 · 1 comment
Open

edit messages #440

casperdcl opened this issue Jun 1, 2022 · 1 comment

Comments

@casperdcl
Copy link

casperdcl commented Jun 1, 2022

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)
@liiight
Copy link
Owner

liiight commented Jul 12, 2022

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 👍

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

No branches or pull requests

2 participants