From dbdfbdcc8eda71806e252bf807c8dc7e4e4b46e1 Mon Sep 17 00:00:00 2001 From: Giuseppe <30879794+angolo40@users.noreply.github.com> Date: Tue, 27 Feb 2024 13:41:06 +0100 Subject: [PATCH] Update mikrocata.py fixed telegram notifications --- mikrocata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mikrocata.py b/mikrocata.py index 693fc40..6601d0f 100644 --- a/mikrocata.py +++ b/mikrocata.py @@ -182,7 +182,7 @@ def add_to_tik(alerts): print(f"[Mikrocata] new ip added: {cmnt}") if enable_telegram == True: - print(requests.get(sendTelegram("From: " + wanted_ip + "\nTo: " + src_ip + ":" + wanted_port + "\nRule: " + cmnt)).json()) + print(requests.get(sendTelegram("From: " + wanted_ip + "\nTo: " + src_ip + ":" + str(wanted_port) + "\nRule: " + cmnt)).json()) except librouteros.exceptions.TrapError as e: