Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Notification Settings] expose 'chatid' in Telegram agent configuration

Featured Replies

The Telegram agent is extremely useful!
However if you'd like to have the agent send messages to a telegram group then the agent needs to know the ChatID of that telegram group.

 

Currently you have to use the terminal for that.

cd /boot/config/plugins/dynamix/telegram
nano chatid


Please expose a 'chatid' field in the Configuration of the Telegram Agent to make this process more user friendly. :)

@limetech

  • 2 weeks later...

Seconded this is super a super easy fix which would improve the experience for us

  • 2 months later...
  • Author

BUMP - I just ran into this again on a new install. the Telegram notification section in the configuration is 100% useless without this option.

  • 1 year later...

This is just annoying. Please, almost 2 years later we are in the same position.

Edited by dgongut

  • 6 months later...

I'm new to Unraid and just had to look this up. Glad this came up, but this really should be a feature. Now I get my Kuma and Unraid notifications in the same chat.

  • 5 months later...

Hello, here to push the same request and add to request adding support for the topic ID within the Unraid telegram agent. I'll explain my need below:

 

I have just one bot managing all the notifications from all my dockers, I've made a group chat with the name of the server and divided it in different topics.

All the notification messages from the agents only supporting the "chatid" field end in the "general" topic of the group chat.

Some other agents from my dockers already support the "topic ID" field so I can drive their messages into a specific conversation (topic) within the same group just by adding the topic ID in addition to the chat ID.

 

That would be a nice feature to add so that we can direct messages from Unraid into a specific topic within a bigger server group chat.

 

EDIT: I've tried to modify the Telegram agent script by myself but unfortunately it gets overwritten by the system and I can't get the modification to stick.

 

Adding this feature should be as easy as modifying this last part of the Dynamix Telegram.sh script from this:

 

CHATID=$(< $TELEGRAM/chatid);
MESSAGE=$(echo -e "$(hostname): $TITLE\n$MESSAGE");
curl -G -s "https://api.telegram.org/bot$BOT_TOKEN/sendMessage" --data-urlencode "chat_id=$CHATID" --data-urlencode "text=$MESSAGE" 2>&1;

 

To this:

CHATID=$(< $TELEGRAM/chatid);
TOPICID=$(< $TELEGRAM/topicid);
MESSAGE=$(echo -e "$(hostname): $TITLE\n$MESSAGE");
curl -G -s "https://api.telegram.org/bot$BOT_TOKEN/sendMessage" --data-urlencode "message_thread_id=$TOPICID" --data-urlencode "chat_id=$CHATID" --data-urlencode "text=$MESSAGE" 2>&1;

 

Where "topicid" is a file similar to "chatid" containig the topic index

 

Does anyone know how could I force these script mods to stick?

 

Thank you

Edited by J1mm1
Adding information

  • 4 weeks later...

I've created a custom user script that runs on the array startup:

 

echo "-your group chat id" > /boot/config/plugins/dynamix/telegram/chatid

 

Edited by Jarek Kr

  • 2 weeks later...
On 1/11/2025 at 11:45 AM, Jarek Kr said:

I've created a custom user script that runs on the array startup:

 

echo "-your group chat id" > /boot/config/plugins/dynamix/telegram/chatid

 

Don't think you need a script for that, the chatid file is persistent across reboots

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.