The problem seems to be this entry should not be there. After taken it away it works
<entry key='sms.http.url'>https://www.traccar.org/sms/</entry>
Yes, we hope that there will be a clear example and thanks in advance. I tried a lot and failed every time
Someone confirm me if the telegram notifications reach a single chat? This means that there is only one chat where the notifications that are configured by telegram arrive, it would be only for administration purposes. It would not work for user notifications that are only interested in their devices. It is very different when using the notifying SMS that is per user, that is, it sends the sms to a user about the notifications of their linked device
The sms.http.url
definitely not needed for Telegram. It was a copy paste error. Removed now.
Per user chat is supported.
How or where is documentation to configure telegram chat per user?
Its really two parts. You setup the config in traccar. Then you must create a telegram bot. And a telegram key. When this is done you add the key and your telegram id in the config. If you want user based telegram notifications each user has to add an attribute with his telegram id. There is a lot of tutorials out there for the telegram part.
Visa citerad text
How or where is documentation to configure telegram chat per user?
There's no documentation, but it's configured in a standard way - through user attributes.
Hi Anton, please I need the correct word tu put here to work telegram per user, I add the attribute in account "Telegram Chat Id", but how write this in config file please, I allready work per user with sms notificator, but that scrip I need to whatsapp notification.
My Whatsapp notification allready work per user, before that telegram per user using sms notificator, but i want telegram too in telegram notificator, how write telegram chat id in that line please
<entry key='notificator.telegram.chatId'>{Telegram.Chat.ID}</entry>
<entry key='notificator.telegram.key'>MyBotToken-WJuivkeA5aQ9Y-YrN0</entry>
<entry key='notificator.telegram.chatId'>{Telegram.Chat.ID}</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>http://myserverip:8000/send-message?</entry>
<entry key='sms.http.user'>[YOUR ACCOUNT SID]</entry>
<entry key='sms.http.password'>[YOUR AUTH TOKEN]</entry>
<entry key='sms.http.template'>
number={phone}&message={message}
</entry>
You should remove notificator.telegram.chatId
from the config file if you use per-user.
How easy!
Thank you very much, I had several days thinking about how to do it
I already have the two notifications working simultaneously, Telegram and WhatsApp
My Config
<entry key='notificator.types'>telegram,web,mail,sms</entry>
<entry key='notificator.telegram.key'>MyBotApiToken</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>http://MyServerIp:8000/send-message?</entry>
<entry key='sms.http.user'>[YOUR ACCOUNT SID]</entry>
<entry key='sms.http.password'>[YOUR AUTH TOKEN]</entry>
<entry key='sms.http.template'>
number={phone}&message={message}
</entry>
saludos, inetsof, disculpa la molestia, podrias arrojar algo de luz sobre como hiciste con los dos servicio (telegram y whatsapp?) que pagina o bou usaste para hacerlos funcionar, muchas gracias
Hola Kevin, use un vps con node e instalé whatsapp-web.js, funciono perfecto, fue solo una prueba, aun no lo tengo en producción, pero te garantizo que es posible.
@inetsof bro podrias ayudarme con el script que usaste para el bot? ya se que usaste whatsapp-web.js pero tu creaste el bot?
Hi!
Perhaps anton or someone else could give an example of a correct config for the Telegram notifications. The one in the documentations is clearly not .Below is the one I tried but the server dont even start