Всем привет! Настроил Mikrotik через PPP Profile скриптом, чтобы бот в телеграмм оповещал о сетях, подскажите, пожалуйста, может я что то неправильно делаю?
:local callerId;
:log info "Line-1";
:local calledId;
:log info "Line-2";
:set callerId $"caller-id";
:log info "Line-3";
:set calledId $"called-id";
:log info "Line-4";
:local Hostname [/system identity get name];
:log info "Line-5";
:local datetime [/system clock get date];
:log info "Line-6";
:local time [/system clock get time];
:log info "Line-7";
:local message "$datetime $time %0A $Hostname %0A Connected user: $user via L2TP %0A $callerId";
:log info "Line-8";
:local sendToTele "
https://149.154.167.220/bot:/sendMessage\?chat_id=&text=";
:log info "Line-9";
/tool fetch url="$sendToTele$message" keep-result=no;
:log info "Line-10";