Question about how to configure Traccar so that another user receives notifications on Telegram only from the tracker linked to their account.

Turbovix9 days ago

I have a question, I have an administrator account which I receive notifications from my trackers in a Telegram account through the bot, now a question has arisen. I created an account for a friend and added his tracker to his account. However, I don't know how to proceed to make him receive notifications from his tracker and only his, in his Telegram through the bot.

Anton Tananaev9 days ago

You can have chat id per user.

Turbovix9 days ago

Perfect, that's what I was doing wrong. Now it works perfectly. Thanks Anton.

bc389 days ago

Can you give more details on how to send messages only to a specific person?

Turbovix8 days ago

1 - On the person's smartphone, create a group on Telegram and give it a name.

2 - In this group, add the Telegram bot responsible for sending Traccar notifications used in the Administrator account.

3 - Retrieve the group's chat ID:
In the newly created group, search for @BotFather.
Create a new bot using the /newbot command.
Copy the access token provided at the end of the process.
Add the bot to the group:
Join the group where you want to know the ID.
Add the bot to the group as a member.

4 - Use the Telegram API to check for updates:
In the browser or a request tool like Postman, send the following request replacing "TOKEN" with the bot's token:
Copy code
https://api.telegram.org/ bot "TOKEN" /getUpdates
In the return, you will see the group ID in the chat.id field of the group's messages.

5 - Now access this user's account and in (Account) and (Attributes) you will see the field (Telegram Chat ID), then enter the group ID that you retrieved in the steps above and finally save.

6 - Don't forget, as an administrator, to release notifications and types, in addition to associating devices with this user.