Telegram notifications multiple chats

dennis 3 years ago

Hi,

https://github.com/traccar/traccar/pull/4697

Can someone explain to me what i should do to get this working?
Am i correct that if i remove this from the config:

<entry key='notificator.telegram.chatId'>******</entry>

That when i create a user attribute with name: notificationTelegramChatId and value: the chatId that it will work?

dennis 3 years ago

Because when i create a user attribute with name: notificationTelegramChatId and value: the chatId it is getting removed somehow

Anton Tananaev 3 years ago

How are you creating it? Can you share a screenshot?

shyy 3 years ago

You can use telegram bot @chatIDrobot to find your chat id

dennis 3 years ago

I found the problem. It should be “TelegramChatId“ then it’s working fine.
A little better documentation would be appreciated for Traccar :-)

Thanks

Anton Tananaev 3 years ago

You just need to use the existing attribute:

screenshot

dennis 3 years ago

In the legacy web ui that option was not provided.
I’m still in the migration state since when I go to the new web interface my phones can’t load the page anymore with the iPhone app, this happens when I go from 5.2 to 5.3 so I downgraded first for the current time. Maybe it has something to do with the Ngix proxy I don’t know yet, I’m using Traccar for years this way.

Jose 2 years ago

Hello, I am new here and need to use notifications for different groups based on the user. For example, a user from Madrid does not want to see notifications meant for a user from Barcelona. How can I configure it so that one user receives notifications from chatId1, another user from chatId2, and another from chatId3?

Currently, I have this configuration:

xml
Copiar código

<!-- Telegram Notification -->
<entry key='notificator.telegram.key'>7173456:AAHmEeFrahehsjheYvWE</entry>
<entry key='notificator.telegram.chatId1'>-1002143212198</entry>
<entry key='notificator.telegram.chatId2'>-100993223343210</entry>
<entry key='notificator.telegram.chatId3'>-1001233337890</entry>

How can I set it up so that each user receives notifications specific to their chatId?

Feel free to ask if you need any more help!

Anton Tananaev 2 years ago

Feel free to ask if you need any more help!

What help have you provided us so far?