angolo40 / mikrocata2selks

Mikrotik + Selks (Suricata) + Telegram + TZSP on Debian 12
GNU General Public License v3.0
51 stars 12 forks source link

Telegram message is not sent #10

Closed SerhiiZahuba closed 5 months ago

SerhiiZahuba commented 5 months ago

Hello

I see in the router that new IP addresses are added to the letter, but the message does not come in Telegram. Where can I see the log of sending a message in Telegram?

Thanks

angolo40 commented 5 months ago

Assuming you have configurated correctly telegram token and chat id try to change the line 185 in script: print(requests.get(sendTelegram("From: " + wanted_ip + "\nTo: " + src_ip + ":" + str(wanted_port) + "\nRule: " + cmnt)).json())

SerhiiZahuba commented 5 months ago

Yes. Now working . Thanks