traccar-web icon indicating copy to clipboard operation
traccar-web copied to clipboard

Telegram Messenger

Open HeimLabor opened this issue 8 years ago • 8 comments

Hello Vitaly,

maybe it is a good idea to integrate Telegram Messenger instead or beside of Pushbullet. Telegram is more flexible, you are able to build groups, maybe for the future send messages back to the server. And there is a client for every popular os.

The Messenger has also a simple http API like pushbullet (The User must figure his own bot and chat ID ) https://api.telegram.org/bot<API-Key-from-Bot>/sendMessage?chat_id=<chatid>text=Text to send here

Description how bots work -> https://core.telegram.org/bots

wbr, Heiko

HeimLabor avatar Jun 23 '16 08:06 HeimLabor

Well, I think it's a good idea :) I just don't have time to implement it for now. You are welcome to implement it and send a pull request.

vitalidze avatar Jun 24 '16 20:06 vitalidze

That's nice! Whatsapp dont have this api?

leontino avatar Jul 06 '16 14:07 leontino

Whatsapp does not have official API.

vitalidze avatar Jul 06 '16 19:07 vitalidze

you can always use yowsup but they will block your number.

100n0m3 avatar Jul 07 '16 11:07 100n0m3

@100n0m3 yeah, I read about it and there is a PHP library too. First of all, yowsup is written in python, so it will require either third party application somewhere or python interpreter written in java. And though it's not an official way I doubt it is a good idea to include it in the project.

vitalidze avatar Jul 07 '16 11:07 vitalidze

here an example of yowsup that can be used

yowsup-cli demos -l number:password -s numebrtosend " example some notification etc.."

number to send could be get of database and the other variables too device etc... just like email but only change the command to shell execute the yowsup.

100n0m3 avatar Jul 07 '16 12:07 100n0m3

This makes things much more complicated. For example on windows OS I doubt the process will be this trivial.

You are free to implement this method of sending notifications if you want.

vitalidze avatar Jul 07 '16 12:07 vitalidze

More info in the https://github.com/traccar/traccar/issues/4274 and https://github.com/traccar/traccar/commit/22436a2434faa8912c8a352e65306d0dc0669b5c

I vote for implement telegram notification

Nitrosito avatar Apr 18 '19 08:04 Nitrosito