pystemon icon indicating copy to clipboard operation
pystemon copied to clipboard

Allow multiple chat_id for Telegram storage.

Open Gurulhu opened this issue 2 years ago • 1 comments

It may be a corner case and I understand this can be "solved" by putting the bot in a shared chat, but I bumped into the issue of wanting to notify more than one user on Telegram, and as it is now the implementation only supports one chat id.

As a side note, the telegramstorage.py file is missing a PastieStorage import that sometimes silently breaks the storage class if no other storage class that imports it is enabled and loaded before it.

I fixed both issues in my fork and will open a PR if you deem the multiple chat_ids issue relevant. If you chose to deny it, I can rollback the fork and PR only to fix the import issue, just let me know.

Gurulhu avatar Jun 01 '22 19:06 Gurulhu

Such contribution would be nice. Thank you

cvandeplas avatar Jun 02 '22 05:06 cvandeplas