limetech Posted November 27, 2019 Share Posted November 27, 2019 11 hours ago, BackupAddict said: Easy once one know how but that said a simple chatid field in the UnRAID notification agent GUI for Telegram would sure be more user friendly than having to use terminal agreed 1 Quote Link to comment
Monty Posted December 3, 2019 Share Posted December 3, 2019 I've just started playing with this, and am trying to get notifications on 2 devices for a server (there are two of us admins for it). I created the Bot, and the other person has added the bot. My telegram gets the notifications without issue, but the second person is not getting any notifications. Am I doing something wrong? Quote Link to comment
killeriq Posted December 14, 2019 Share Posted December 14, 2019 (edited) found out , that this part had to be enabled also Edited December 14, 2019 by killeriq Quote Link to comment
dhstsw Posted January 25, 2020 Share Posted January 25, 2020 (edited) So, i tried to set up my telegram for notificartion, i created the bot and got the "token to access HTTP API. Configured in Unrad notifications: Disabled it, re-enabled it. Test. Nothing. Any clue? Thanks. EDIT: some hour after it started working. Edited January 25, 2020 by dhstsw Quote Link to comment
dhstsw Posted January 25, 2020 Share Posted January 25, 2020 (edited) On 11/26/2019 at 6:01 AM, Ashe said: cd /boot/config/telegram Nano chatid Add chatid number to file Ctrl-x Save Hi, in my /boot/config there's no telegram folder. I made it nonetheless and did the chatid file inside with the group chat id (of course) but with no avail. found this: /boot/config/plugins/dynamix/telegram Inside there's the chatid, with a 9 digits number. The chatid for the group is a 9 digits too but with a "g" at the start (10 characters in total). Modified with both the "g" and without, no results. Any hints? Thanks. EDIT: solved by myself. It needs the "-" symbol before the number, something like: -123456789 Cheers. Edited January 25, 2020 by dhstsw Quote Link to comment
Ashe Posted January 25, 2020 Share Posted January 25, 2020 Hi, in my /boot/config there's no telegram folder. I made it nonetheless and did the chatid file inside with the group chat id (of course) but with no avail. found this: /boot/config/plugins/dynamix/telegram Inside there's the chatid, with a 9 digits number. The chatid for the group is a 9 digits too but with a "g" at the start (10 characters in total). Modified with both the "g" and without, no results. Any hints? Thanks. EDIT: solved by myself. It needs the "-" symbol before the number, something like: -123456789 Cheers.Glad it's working. My chat Id is in the config/telegram folder and works with just the number. But if it works it worksSent from my iPhone using Tapatalk Quote Link to comment
Ashe Posted January 25, 2020 Share Posted January 25, 2020 Hi, in my /boot/config there's no telegram folder. I made it nonetheless and did the chatid file inside with the group chat id (of course) but with no avail. found this: /boot/config/plugins/dynamix/telegram Inside there's the chatid, with a 9 digits number. The chatid for the group is a 9 digits too but with a "g" at the start (10 characters in total). Modified with both the "g" and without, no results. Any hints? Thanks. EDIT: solved by myself. It needs the "-" symbol before the number, something like: -123456789 Cheers.Glad it's working. My chat Id is in the config/telegram folder and works with just the number. But if it works it worksSent from my iPhone using Tapatalk Quote Link to comment
Jokerigno Posted February 19, 2020 Share Posted February 19, 2020 Hi all, I tried to set it up but it doesn't work. This is what I've done: -enabled agent in unraid ui - activated agent notification -created a folder in /boot/config called telegram and a chatid file with my id taken using IDbot. What I'm doing wrong? Thank you in advance! Quote Link to comment
Ashe Posted February 19, 2020 Share Posted February 19, 2020 The telegram folder should have been created automatically when you set it up in the notification settings. Can you check if the is a Telegram folder under boot/config/plugins/dynamix/notifications? Edit /boot/config/plugins/dynamix/notifications/agents This should have a Telegram.sh file in there Quote Link to comment
Jokerigno Posted February 19, 2020 Share Posted February 19, 2020 7 minutes ago, Ashe said: The telegram folder should have been created automatically when you set it up in the notification settings. Can you check if the is a Telegram folder under boot/config/plugins/dynamix/notifications? Edit /boot/config/plugins/dynamix/notifications/agents This should have a Telegram.sh file in there. Yes. The file exist. And it has inside info like my bot id. Quote Link to comment
Ashe Posted February 19, 2020 Share Posted February 19, 2020 I think the only option is to manually clear the files and try again via the webgui Sent from my iPhone using Tapatalk Quote Link to comment
Jokerigno Posted February 26, 2020 Share Posted February 26, 2020 Tried. Nothing changed. Quote Link to comment
ijuarez Posted February 26, 2020 Share Posted February 26, 2020 (edited) On 1/25/2020 at 9:01 AM, Ashe said: Glad it's working. My chat Id is in the config/telegram folder and works with just the number. But if it works it works Sent from my iPhone using Tapatalk dang chatid, i needed to know where to find it, I finally got mine working. thanks Edited February 26, 2020 by ijuarez engrish Quote Link to comment
DavKBe Posted March 9, 2020 Share Posted March 9, 2020 (edited) Hello, Telegram Notification doesnt work: I've copy the bot token & APPLY but with pressing TEST nothing happened.... Also i've try these (posted before), but no working more.... On 11/26/2019 at 5:01 AM, Ashe said: cd /boot/config/telegram Nano chatid Add chatid number to file Ctrl-x Save dhstsw Posted January 25 (edited) It needs the "-" symbol before the number, something like: -123456789 Edited March 10, 2020 by DavKBe Quote Link to comment
Kaastosti Posted March 11, 2020 Share Posted March 11, 2020 Ah yes the Telegram API requires both chat id and message text to function: https://core.telegram.org/bots/api#sendmessage The chat_id parameter is part of the test script in Telegram.sh, but in my case (and I guess I'm not alone) the 'chatid' file that is referenced does not exist. If you create it like DavKBe mentions, it is read and the test script works immediately. What I did was create my own Telegram channel, so I can have multiple bots in there. Applications report to their own bot, and by setting the 'Sign messages' option, the bot name is shown. That way I know where the message is coming from. When the channel is there, add @get_id_bot to it. This bot will respond to each message with the chat ID. Once you have it, remove the bot. That is the chat ID you need to add to the 'chatid' file (including the - prefix). Creating you own bot is easy using @BotFather. Just send that bot a message and start the conversation with /newbot. After naming your shiny new companion, the process will end with the BotFather confirming your bot creation and the access api you need. You can test your bot manually by simply using a HTTP call (replace <bot_access_api> and <chat_id> with your values): https://api.telegram.org/bot<bot_access_api>/sendMessage?chat_id=<chat_id>&text=test Quote Link to comment
norbertt Posted March 12, 2020 Share Posted March 12, 2020 On 11/27/2019 at 6:27 AM, BackupAddict said: Easy once one know how but that said a simple chatid field in the UnRAID notification agent GUI for Telegram would sure be more user friendly than having to use terminal that is correct:) There is a way to make a small update for this settings? Because this is not working for me: cd /boot/config/telegram Nano chatid Add chatid number to file Ctrl-x Save Thank you! Quote Link to comment
Kaastosti Posted March 12, 2020 Share Posted March 12, 2020 6 hours ago, norbertt said: "Because this is not working for me" Have you tried to send a message to your bot using the HTTP call? Simply from a browser. As long as your bot token is correct, the chat id is correct and the bot is in the chat... should work. Then at least you know technically it could work and the error is on unRAID side. Quote Link to comment
Unmax Posted April 1, 2020 Share Posted April 1, 2020 For those coming here, I figured it out! It's not working because it's missing the "chatid" file in "/boot/config/plugins/dynamix/telegram" Steps: Follow this guide until you have created the bot Go to Unraid => Settings => Notification settings and scroll all the way down to Telegram. Fill in the HTTP API of the bot Ex: 1216098989:AAGRnTFAKElG1v8pPKuN_RTGW4RTHDxo NO "-" at the start! Open the terminal, first of five icons at the top right of the screen. Once in the terminal do the following: cd ../ cd /boot/config/plugins/dynamix/telegram nano chatid *paste in the channel id where the bot should post, or your own Telegram ID* Ex: -1001444111222 MAKE SURE TO HAVE A "-" AT THE START HERE! *CTRL + S to save* *CTRL + X to close editor* ls *to check if the file has been made* No go back to the notification settings, press test underneath the Telegram form and it should work now! Let me know if you have questions! Quote Link to comment
L0rdRaiden Posted April 2, 2020 Share Posted April 2, 2020 On 4/1/2020 at 9:43 PM, Unmax said: For those coming here, I figured it out! It's not working because it's missing the "chatid" file in "/boot/config/plugins/dynamix/telegram" Steps: Follow this guide until you have created the bot Go to Unraid => Settings => Notification settings and scroll all the way down to Telegram. Fill in the HTTP API of the bot Ex: 1216098989:AAGRnTFAKElG1v8pPKuN_RTGW4RTHDxo NO "-" at the start! Open the terminal, first of five icons at the top right of the screen. Once in the terminal do the following: cd ../ cd /boot/config/plugins/dynamix/telegram nano chatid *paste in the channel id where the bot should post, or your own Telegram ID* Ex: -1001444111222 MAKE SURE TO HAVE A "-" AT THE START HERE! *CTRL + S to save* *CTRL + X to close editor* ls *to check if the file has been made* No go back to the notification settings, press test underneath the Telegram form and it should work now! Let me know if you have questions! This is the easiest way to get your chat ID with 1 click Quote Link to comment
ssn760 Posted June 9, 2020 Share Posted June 9, 2020 Still broken, even in beta v6.9. I can't imagine it's that difficult to add the chat id as a field to populate under the bot token? Or at a minimum, add help text to indicate which files need to be populated on the USB stick. Looking at this thread, it seems this has been broken for a long time. Quote Link to comment
exist2resist Posted June 11, 2020 Author Share Posted June 11, 2020 (edited) On 6/9/2020 at 6:29 AM, ssn760 said: Still broken, even in beta v6.9. I can't imagine it's that difficult to add the chat id as a field to populate under the bot token? Or at a minimum, add help text to indicate which files need to be populated on the USB stick. Looking at this thread, it seems this has been broken for a long time. It's not broken mine has been working without hiccup for over a year now. You need to create a chatid file under /boot/config/telegram. From the command line run the following; touch /boot/config/telegram/chatid In that file you need to input the chatid of your user not your bot. You can obtain this by going to the following url; https://api.telegram.org/bot{bot token}/getUpdates Or running a curl command from the command line; curl https://api.telegram.org/bot{bot token}/getUpdates Where {bot token} is your bot api token... in the format of 1111111111:AAasdflakjhsflaskdhalskdjyYo You will see json formated text spit out. Look for the first instance of a chat id that belongs to your user name and not the bot. "chat":{"id":206646491,"first_name":"Max","last_name":"Power","username":"MPower" The above is the chat id you insert into your chatid file on the server. Just the number nothing else. Run this in command line; echo "206646491" > /boot/config/telegram/chatid Edited June 11, 2020 by exist2resist Quote Link to comment
owenfiscus Posted August 14, 2020 Share Posted August 14, 2020 On 6/9/2020 at 5:29 AM, ssn760 said: Still broken, even in beta v6.9. I can't imagine it's that difficult to add the chat id as a field to populate under the bot token? Or at a minimum, add help text to indicate which files need to be populated on the USB stick. Looking at this thread, it seems this has been broken for a long time. If you're trying to use a channel ID you need to add '-100' to the front of it in your chatid file for it to function. Ex: Channel ID is 1234567899, you would provide -1001234567899 to the file Quote Link to comment
turnipisum Posted March 15, 2021 Share Posted March 15, 2021 (edited) Can we not get the chatID in field box in the UI with the other settings? as it is needed. @limetech @Squid Edited March 15, 2021 by turnipisum Quote Link to comment
Jokerigno Posted March 15, 2021 Share Posted March 15, 2021 For me having it working should be enough Quote Link to comment
turnipisum Posted March 15, 2021 Share Posted March 15, 2021 1 hour ago, Jokerigno said: For me having it working should be enough Why is yours not working? Quote Link to comment
Recommended Posts
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.