How To integrate Telegram into Traccar 4.5

Peter Pannewitz 7 years ago

A step by step documentation on how to integrate Telegram into Traccar 4.5:
Traccar-Telegram

Anton Tananaev 7 years ago

Nice, thanks for sharing.

gabrielcz 7 years ago

Hi Peter, thanks for sharing.
I have a question, on the doc, you say:

Click on the link in the answer of botfater: t.me/any_name_bot
Start a chat by sending a simple „hello“ twice.
Enter https://api.telegram.org/botxxyyz/getUpdates in a browser.
You will receive:

I go in browser to: https://api.telegram.org/GEsmeralda_Bot/getUpdates and I get:

{"ok":false,"error_code":404,"description":"Not Found"}

Any clue?

Peter Pannewitz 7 years ago

Hi gabrielcz
Please enter https://api.telegram.org/botxxyyz/getUpdates where xxyyyz is the HTTP API token, which you received from botfather.
It is not the botname and not the username.

gabrielcz 7 years ago

Thanks for reply.

I tried that too.
mi key is something like:

863670332:AAG8MZxR4zu_fcK0mssdcddscq2Yf8mmITs

I try:

https://api.telegram.org/863670332:AAG8MZxR4zu_fcK0mssdcddscq2Yf8mmITs/getUpdates
https://api.telegram.org/AAG8MZxR4zu_fcK0mssdcddscq2Yf8mmITs/getUpdates
https://api.telegram.org/863670332/getUpdates

and in all cases I get:

{"ok":false,"error_code":404,"description":"Not Found"}

You know what more I can try?
Regards,

gabrielcz 7 years ago

Done, working, need to put BOT word as bot863670332:AAG8MZxR4zu_fcK0mssdcddscq2Yf8mmITs

thanks

Macan 6 years ago

Hi,

Nice tutorial mate. I follow your steps and add this two lines into the traccar xml:
<entry key='notificator.telegram.key'>xxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxx</entry>
<entry key='notificator.telegram.chatid'>00000000</entry>
but I do not have option in the Traccar Web Server>Notification to add notificatorTelegram, I only have this four notification options: mobile, web, sms, mail. Is there anything I can do to fix this issue ?

Thank you again for the tutorial.

Macan 6 years ago

Hi Peter again,

When I add the code for the Telegram in the traccar js do I need to compile traccar again or I can just run debug.html ?

You k 6 years ago

when i tried to generate the chat_ID i got only this : {"ok":true,"result":[]}

Fmstrat 6 years ago

Hey all, I just posted about this here: https://www.traccar.org/forums/topic/tracar-notifier-push-notifications-for-pushover-and-telegram-with-support-for-add-ons/

But you may find it easier to use this companion app to connect with Telegram: https://github.com/Fmstrat/traccar-notifier

Daniel G 6 years ago

Hello Fmstrat,
Thank you for your guide.
Can you please describe how "Usage outside of Docker" can be used on already installed Traccar server (on ubuntu 18.04)? I am a beginner and badly need your help of step-by-step guide.
Thanks!

yaneimeumbria 6 years ago

Good afternoon, I would like to know how to access the source code of traccar.
I would appreciate your help

You k 3 years ago

please send again the step by step traccar telegram documentation

Peter Pannewitz 3 years ago