Skip to content

Commit

Permalink
fixed configuration files to reflect new changes.
Browse files Browse the repository at this point in the history
changed chat-id to chat-ids to better suit multiple IDs.
  • Loading branch information
Gurulhu committed Jun 1, 2022
1 parent 76520ab commit 02ad659
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pystemon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ storage:
enable: no # Enable this alerting engine
save: yes
token: 0 # see https://core.telegram.org/bots/api#authorizing-your-bot
chat-id: 0
chat-ids:
- 0

email:
alert: no # Enable/disable email alerts
Expand Down
2 changes: 1 addition & 1 deletion pystemon/storage/telegramstorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class TelegramStorage(PastieStorage):

def __init_storage__(self, **kwargs):
self.token = kwargs.get('token')
self.chat_ids = kwargs.get('chat-id')
self.chat_ids = kwargs.get('chat-ids')

def __save_pastie__(self, pastie):
if pastie.matched:
Expand Down

0 comments on commit 02ad659

Please sign in to comment.