Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature Request - Telegram / SMS API #4551

Closed
JBFelizberto opened this issue Jun 26, 2020 · 1 comment
Closed

New Feature Request - Telegram / SMS API #4551

JBFelizberto opened this issue Jun 26, 2020 · 1 comment

Comments

@JBFelizberto
Copy link

JBFelizberto commented Jun 26, 2020

reference: https://www.traccar.org/forums/topic/sms-configuration-question/

Main objective: Send a telegram notificationto each user separately.
How: using the solution https://www.traccar.org/http-sms-api/

Description: Today it´s possible send a telegram notification when we config traccar.xml as follow:

							<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
							<entry key='sms.http.url'>https://api.telegram.org/[BOT-TOKEN]/sendMessage?</entry>
							<entry key='sms.http.user'>[YOUR ACCOUNT SID]</entry>
							<entry key='sms.http.password'>[YOUR AUTH TOKEN]</entry>
							<entry key='sms.http.template'>chat_id={phone}&amp;text={message}</entry>

Is it infinitely more easier than use the telegram traccar configuration (

                                                      <entry key='notificator.telegram.key'></entry>, 						
                                                     <entry key='notificator.Telegram.chatid'></entry>

)

Issue: all user receive alert of all devices, because the telegram group is unique.

Solution: if we can set the <entry key='sms.http.url'>https://api.telegram.org/[BOT-TOKEN]/sendMessage?</entry> in attribute for each user, only that user will receive the notification for his device.

Make sense?

Respectfully ,

JB

@JBFelizberto
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant