Telegram function stopped working

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
peter65e
Posts: 6
Joined: Sunday 14 September 2025 22:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Telegram function stopped working

Post by peter65e »

Hi Domoticz Forum,

I'm struggling to figure out why my Telegram function not working any more, any one out there experienced the same issue??

My notification function stopped working in the beginning of July, no changes done for the Telegram config.

Telegram ENABLED
API Key correct
Chat ID correct

Has work flawlwess before
Pushing the test button NO Messages arrives in my Telegram APP.

Verifying connectivity from the Raspberry PI i can send Telegram messages from a browser using an https test string using the same API and Chat ID and it arrives correct to the Telegram app.

Also tried another Telegram API key but no success.

Version: 2025.1
Platform: Raspbian GNU/Linux 10 (buster)
Plugin/Hardware: Rapberry PI 3
Description: Telegram issue

Best regards
Peter
User avatar
waltervl
Posts: 6689
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Telegram function stopped working

Post by waltervl »

For me Telegram still works with my 2025.1 stable. Pressing the Test button triggers a test message in Telegram.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
peter65e
Posts: 6
Joined: Sunday 14 September 2025 22:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Telegram function stopped working

Post by peter65e »

Okay thanks fort the reply the Telegram function in my version isn't broken then.
Is there some other dependencies that must be fulfilled? Like public IP? Firewall rules?

I did become aware of this Telegram issue after we had to change our ISP, the main difference now is that the new ISP will not supply me with an public IP. I'm not sure if that could be an issue for the Domoticz Telegram function?

I also tried to connect my RPI to a different router over 4G but same result.

I also tried to debug using Wireshark if there where some issue showing up there. Hard to find any error that could explain what's all about.

The log from Domoticz is showing this...and it's not happy about something

2025-09-19 12:28:56.259 Status: Notification: Domoticz test
2025-09-19 12:29:06.288 Error: Telegram:
2025-09-19 12:29:06.288 Notification sent (telegram) => Failed
2025-09-19 12:29:06.299 Active notification Subsystems: browser, telegram (2/13)

Any idea what to look for? More logfiles to look into??

/Peter
User avatar
habahabahaba
Posts: 267
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: Telegram function stopped working

Post by habahabahaba »

Try this command

Code: Select all

https://api.telegram.org/bot<YOUR_BOT_NUMBER>/getUpdates
From browser
User avatar
waltervl
Posts: 6689
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Telegram function stopped working

Post by waltervl »

Do you not get any public IP? or not a fixed?
I get a new IP every day, no issues with that.
If the https telegram commands are working it could only be an issue with the RPI where Domoticz is running on?
Dou you have your own firewall installed?
You could try to run the command with curl from a terminal session from the Domoticz server.

Code: Select all

curl https://api.telegram.org/bot<YOUR_BOT_NUMBER>/getUpdates
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
peter65e
Posts: 6
Joined: Sunday 14 September 2025 22:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Telegram function stopped working

Post by peter65e »

habahabahaba wrote: Friday 19 September 2025 13:18 Try this command

Code: Select all

https://api.telegram.org/bot<YOUR_BOT_NUMBER>/getUpdates
From browser
I have now tried that and the result seems to bee okay.
{"ok":true,"result":[]}

Sending a Telegram msg from browser with my bot<MY_BOT_NUMBER> works as it should. If that is a connectivity test so why isn't working from Domoticz test bottom. Same API Key and Chat ID. Very strange.
User avatar
jvdz
Posts: 2445
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Telegram function stopped working

Post by jvdz »

And what is the result when using curl from the commandline of your rpi you are running domoticz on?
peter65e
Posts: 6
Joined: Sunday 14 September 2025 22:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Telegram function stopped working

Post by peter65e »

jvdz wrote: Monday 22 September 2025 15:43 And what is the result when using curl from the commandline of your rpi you are running domoticz on?
"curl" cmd gives the same result. Note sure what this means. The result is "Nothing" ??

{"ok":true,"result":[]}
User avatar
jvdz
Posts: 2445
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Telegram function stopped working

Post by jvdz »

Result is fine for getupdates as that only returns the untead messages.
It also means that things should work from your rpi.
Are you sure you filled the bot info correctly in the domoticz-telegram setup ?
peter65e
Posts: 6
Joined: Sunday 14 September 2025 22:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Telegram function stopped working

Post by peter65e »

jvdz wrote: Monday 22 September 2025 20:35 Result is fine for getupdates as that only returns the untead messages.
It also means that things should work from your rpi.
Are you sure you filled the bot info correctly in the domoticz-telegram setup ?
Thank's for the reply and verfication of the Bot function.

I wrote before that I can verify the API key and Chat ID from a browser window with a send string and then I recieve a correct Telegram Msg using the same API key and Chat ID that i use in Domoticz.

Further up in my case you can see the error msg in Domoticz log.
Dosn't tell me what's not working, any suggestions what to test or look into another log ??
User avatar
habahabahaba
Posts: 267
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: Telegram function stopped working

Post by habahabahaba »

Any OS updates installed may be?

Domoticz in docker?
peter65e
Posts: 6
Joined: Sunday 14 September 2025 22:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Telegram function stopped working

Post by peter65e »

Finally I figured out that all of this trouble was a DNS issue. I tried Google DNS 8.8.8.8 but it didn't solve the issue, but when I configured the RASPPI to use the ISP supplied DNS servers it all started to works at it should. The strange part is that normal web browsing and all other stuff was working but not the Telgram url. Try and error way to solve things
Thank's for all help along the way. :-)
/Peter
Post Reply

Who is online

Users browsing this forum: Thorgal789 and 1 guest