Skip to content

Commit

Permalink
[f] notify chats types
Browse files Browse the repository at this point in the history
  • Loading branch information
gmankab committed Jul 3, 2024
1 parent ae3ff2c commit afc4b8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reposter/tg/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ def chat_str_fix(chat: str | int) -> str | int:


def set_handlers():
notify = []
for chat_to_fix in reposter.core.config.json.stream_notify_chats:
notify.append(
chat_str_fix(chat_to_fix)
)
reposter.core.config.json.stream_notify_chats = notify
for source_to_fix, target_to_fix in reposter.core.config.json.chats.items():
source = chat_str_fix(source_to_fix)
if isinstance(target_to_fix, list):
Expand Down

0 comments on commit afc4b8e

Please sign in to comment.