Problem with telegram notifications after 4.13 update

Xabi O.4 years ago

Hi,

Previous the update the short template was used for notifications with telegram without any problem:

$device.name sale de $geofence.name - $dateTool.format("HH:mm", $event.serverTime, $locale, $timezone) - $webUrl?eventId=$event.id

After update full templates are used and template is not correctly filled:

Bad code on telegram notif.

Anton Tananaev4 years ago

You have to replace $event.serverTime with $event.eventTime.

Xabi O.4 years ago

Hi,

As you say, this solved the problem with the time on the message:

Solved time problem, but still html code on telegram message

But what I wanted to explain in my first post, is the problem with the html code on the telegram message, from the full templates.

As you see, the problem with the html code even occurs with test message (previous to 4.13 doesn't occurs):

Well formatted test message previous to 4.13

Thanks in advance.

Anton Tananaev4 years ago

Please report this on GitHub as a bug.

Xabi O.4 years ago

Done, bug #4690

lemon3 years ago

Ok, I've seen problem has been fixed by modifying src/main/java/org/traccar/notificators/NotificatorTelegram.java as seen on github, but where is that file on my linux server?

Anton Tananaev3 years ago

You have to compile the code.