Speedtest-Tracker icon indicating copy to clipboard operation
Speedtest-Tracker copied to clipboard

[BUG] Telegram Bot notifications not working

Open octaviz opened this issue 3 years ago • 15 comments

Describe the bug After configuring the parameters of the Token and the Chad ID in Settings (In other systems that I have it is OK) I record the data and do the TEST of the button and I do not receive anything at all.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'I go to Settings and configure Token and ChatID, save and try to do the Test'
  2. Nothing in Telegram App message group

Expected behavior I guess I should see some test message in my Telegram bot

Context

  • OS: Docker, Synology, Tag version: dev
  • Speedtest-Tracker Version: 1.12.2

octaviz avatar May 05 '22 14:05 octaviz

Same issue here.

1aranzant avatar May 24 '22 22:05 1aranzant

Looks like the notifications are working ok when executed by the scheduler. Just the test button does not work.

devdems avatar May 26 '22 09:05 devdems

Restart server that this is running on, and the notifications should work

jgriff1217 avatar Jun 07 '22 01:06 jgriff1217

Can confirm, that it is only the "Test Notifications" button that is not working. If a speedtest is triggered (manually) the notification via telegram are working.

Ninu-Nightwatch avatar Jun 17 '22 20:06 Ninu-Nightwatch

Same here Test button KO

JPnux avatar Jul 07 '22 12:07 JPnux

Did you try restarting your server? Things started working for me after a restart.

jgriff1217 avatar Jul 07 '22 12:07 jgriff1217

Test notification button is not working, if scheduler sends a notification, everything is fine.

Kofl avatar Sep 03 '22 18:09 Kofl

Same here

Archgeus avatar Mar 05 '23 04:03 Archgeus

Same here

look at this project https://github.com/alexjustesen/speedtest-tracker

JPnux avatar Mar 06 '23 13:03 JPnux

same here. Test button does not work. ... is this project still maintained?

McFcologne avatar Aug 23 '23 19:08 McFcologne

For me it's working fine with version 1.12.0. Read the instruction carefully and follow it 100%. You need a Telegram bot token and a Telegram chat id - It's the bot who sends the messages!

Running in Docker on Synology DS218+ (meanwhile 26495 test performed - every 30 minutes)

Dari74 avatar Aug 23 '23 21:08 Dari74

For me 1.12.0, too. But Speedtest-Tracker's Alarm isn't working. I have experience developing bots for Telegram and can distinguish between each ID and token. My bot works fine, but this program fails to send an alarm. Neither Discord, Slack, nor Telegram can receive the alarms.

My System is Synology RS1219+ and DSM 7.1.1-42962 Update 6 with Docker

image

viaSeunghyun avatar Oct 05 '23 18:10 viaSeunghyun

The notification feature itself is working. However, I think that something is broken in the process of calling this API from a button event in the web UI.

Here's how to manually trigger a notification

php /config/www/artisan speedtest:telegram --bot=<token> --chat=<chat id>
php /config/www/artisan speedtest:notification

image

viaSeunghyun avatar Oct 05 '23 18:10 viaSeunghyun

As of 1.12.0, "Test Notification" links to this API.

https://github.com/henrywhitaker3/Speedtest-Tracker/blob/219c5d6b7a7d91ba479646e93b6aa22a7e29ea5f/public/js/app.js#L148304-L148310

{
          type: 'btn-get',
          url: 'api/settings/test-notification?token=' + window.token,
          btnType: 'primary',
          obj: {
            id: Math.floor(Math.random() * 10000) + 1,
            name: 'Test notifications',
            description: 'After saving your updated notification settings, use this to check your settings are correct.'
          }
        },

That API call is throwing a 500 internal error; strict-origin-when-cross-origin The vast majority of other APIs should work fine, and you should double-check to make sure they are not locked to a specific host or otherwise broken.

viaSeunghyun avatar Oct 05 '23 19:10 viaSeunghyun

Using docker with versions: Laravel v10.13.5 PHP v8.1.20 Filament v2.17.46 Speedtest Tracker v0.11.17

I can manually send a notification to Telegram, but the auto notification is not working.

image

reisept avatar Jan 23 '24 15:01 reisept