summaryrefslogtreecommitdiff
path: root/src/openwrt_log_analyzer.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/openwrt_log_analyzer.py')
-rwxr-xr-xsrc/openwrt_log_analyzer.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openwrt_log_analyzer.py b/src/openwrt_log_analyzer.py
index f6d6413..bdfeb6c 100755
--- a/src/openwrt_log_analyzer.py
+++ b/src/openwrt_log_analyzer.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
+import home.telegram as telegram
+
from home.config import config
from home.database import BotsDatabase, SimpleState
-from home.util import send_telegram
"""
config.toml example:
@@ -44,7 +45,7 @@ def main(mac: str, title: str) -> int:
max_id = log.id
text = '\n'.join(map(lambda s: str(s), data))
- send_telegram(f'<b>{title}</b>\n\n' + text)
+ telegram.send_message(f'<b>{title}</b>\n\n' + text)
return max_id