Telegram notification per user chatId

Dario2 years ago

Hello, updated from 4.x to latest build. I need per user notications on Telegram.
In conf/traccar.xml added

    <entry key='notificator.types'>web,mail,telegram</entry>
    <entry key='notificator.telegram.key'>key</entry>

In user added notitificationtelegramchatid attribute, but test messages aren't sent.
In logs there isn't nothing about it, curl -s -X POST https://api.telegram.org/.... sent messages
I have to configure something else? Thanks

Anton Tananaev2 years ago

What made you think "notitificationtelegramchatid" is the right attribute? Where did you get this name or key from?

Dario2 years ago

In user setting there is attribute "Telegram Chat ID" where I used telegram's chat id, and key is botfather's api token
I should use other attributes?

Anton Tananaev2 years ago

In user added notitificationtelegramchatid attribute

In user setting there is attribute "Telegram Chat ID"

So, which one did you actually set? Very confused that you provide completely different information in different comments.

Dario2 years ago

When updated attributes were left, so I had "notificationTelegramChatId" attribute. I removed it and used "Telegram Chat ID", worked fine, Thanks!

Anton Tananaev2 years ago

So where did the "notificationTelegramChatId" come from?

Dario2 years ago

A custom attribute from old installation, to make telegram work where still wasn't fully supported

SYSTADO2 years ago

I did use the Telegram Chat ID attribut at every user but still all telegram notifications go to admin user only
even though its not his geofence and the "test" button works perfect sending each user a notification.
But not the automatic notifications when event is triggered only admin recieves notification :(