feat: add multi-chat routing and bill-specific dashboard countdown
This commit is contained in:
@@ -12,8 +12,8 @@ from blackout_notifier.state import StateError, StateRepository
|
||||
|
||||
|
||||
class ConsoleNotifier:
|
||||
def send(self, text: str) -> None:
|
||||
print("\n--- notification preview ---")
|
||||
def send(self, chat_id: str, text: str) -> None:
|
||||
print(f"\n--- notification preview for chat {chat_id} ---")
|
||||
print(text)
|
||||
|
||||
|
||||
@@ -41,12 +41,11 @@ def main(argv: list[str] | None = None) -> int:
|
||||
if arguments.dry_run
|
||||
else EitaaClient(
|
||||
config.eitaayar_token,
|
||||
config.chat_id,
|
||||
timeout=config.request_timeout_seconds,
|
||||
)
|
||||
)
|
||||
service = OutageService(
|
||||
bill_ids=config.bill_ids,
|
||||
bill_chat_ids=config.bill_chat_ids,
|
||||
lookahead_days=config.lookahead_days,
|
||||
saapa=SaapaClient(
|
||||
config.bargheman_token,
|
||||
|
||||
Reference in New Issue
Block a user