[BUG] Telegram Bot notifications not working
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:
- Go to 'I go to Settings and configure Token and ChatID, save and try to do the Test'
- 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
Same issue here.
Looks like the notifications are working ok when executed by the scheduler. Just the test button does not work.
Restart server that this is running on, and the notifications should work
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.
Same here Test button KO
Did you try restarting your server? Things started working for me after a restart.
Test notification button is not working, if scheduler sends a notification, everything is fine.
Same here
Same here
look at this project https://github.com/alexjustesen/speedtest-tracker
same here. Test button does not work. ... is this project still maintained?
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)
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
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
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.
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.