overseerr icon indicating copy to clipboard operation
overseerr copied to clipboard

Telegram integration not working

Open Sprooty opened this issue 7 months ago • 2 comments

Description

I have spent the morning trying to integrate Overseerr into a telegram bot and have been hitting generic error

"Telegram test notification failed to send."

I have also tried integrating to Telegram via webhook and i get a same/similar error.

"Webhook test notification failed to send."

Debug logs don't show anything useful.

Version

1.33.2

Steps to Reproduce

Telegram Integration

  1. Create Telegram bot
  2. Get Telegram Bot Auth key
  3. Fill fields in Overseer
  4. Click test

Webhook Integration

  1. URL - https://api.telegram.org/botCHANGEME/sendMessage
  2. Payload {
    "chat_id": "CHANGEME",
    "text": "Notification Type: {{notification_type}}\nEvent: {{event}}\nSubject: {{subject}}\nMessage: {{message}}\nImage: {{image}}\nMedia Type: {{media.media_type}}\nTMDB ID: {{media.tmdbId}}\nTVDB ID: {{media.tvdbId}}\nStatus: {{media.status}}\nStatus 4K: {{media.status4k}}\nRequest ID: {{request.request_id}}\nRequested By Email: {{request.requestedBy_email}}\nRequested By Username: {{request.requestedBy_username}}\nRequested By Avatar: {{request.requestedBy_avatar}}\nIssue ID: {{issue.issue_id}}\nIssue Type: {{issue.issue_type}}\nIssue Status: {{issue.issue_status}}\nReported By Email: {{issue.reportedBy_email}}\nReported By Username: {{issue.reportedBy_username}}\nReported By Avatar: {{issue.reportedBy_avatar}}\nComment Message: {{comment.comment_message}}\nCommented By Email: {{comment.commentedBy_email}}\nCommented By Username: {{comment.commentedBy_username}}\nCommented By Avatar: {{comment.commentedBy_avatar}}"
}

The Telegram bot is working fine outside overseerr using curl

curl -X POST
-H "Content-Type: application/json"
-d '{ "chat_id": "CHANGEME", "text": "Notification Type: {{notification_type}}\nEvent: {{event}}\nSubject: {{subject}}\nMessage: {{message}}\nImage: {{image}}\nMedia Type: {{media.media_type}}\nTMDB ID: {{media.tmdbId}}\nTVDB ID: {{media.tvdbId}}\nStatus: {{media.status}}\nStatus 4K: {{media.status4k}}\nRequest ID: {{request.request_id}}\nRequested By Email: {{request.requestedBy_email}}\nRequested By Username: {{request.requestedBy_username}}\nRequested By Avatar: {{request.requestedBy_avatar}}\nIssue ID: {{issue.issue_id}}\nIssue Type: {{issue.issue_type}}\nIssue Status: {{issue.issue_status}}\nReported By Email: {{issue.reportedBy_email}}\nReported By Username: {{issue.reportedBy_username}}\nReported By Avatar: {{issue.reportedBy_avatar}}\nComment Message: {{comment.comment_message}}\nCommented By Email: {{comment.commentedBy_email}}\nCommented By Username: {{comment.commentedBy_username}}\nCommented By Avatar: {{comment.commentedBy_avatar}}" }'
https://api.telegram.org/botCHANGEME/sendMessage

Screenshots

SNAG-0026 SNAG-0027

Logs

2024-07-10T00:32:12.962Z [info][Jobs]: Starting scheduled job: Plex Watchlist Sync 

2024-07-10T00:32:38.835Z [debug][Notifications]: Sending webhook notification {"type":"TEST_NOTIFICATION","subject":"Test Notification"}

2024-07-10T00:32:39.114Z [error][Notifications]: Error sending webhook notification {"type":"TEST_NOTIFICATION","subject":"Test Notification","errorMessage":""}

2024-07-10T00:33:00.007Z [debug][Jobs]: Starting scheduled job: Download Sync 

2024-07-10T00:33:25.899Z [debug][Notifications]: Sending webhook notification {"type":"TEST_NOTIFICATION","subject":"Test Notification"}

2024-07-10T00:33:26.154Z [error][Notifications]: Error sending webhook notification {"type":"TEST_NOTIFICATION","subject":"Test Notification","errorMessage":""}

2024-07-10T00:34:00.007Z [debug][Jobs]: Starting scheduled job: Download Sync 

2024-07-10T00:34:17.402Z [debug][Notifications]: Sending webhook notification {"type":"TEST_NOTIFICATION","subject":"Test Notification"}

2024-07-10T00:34:17.678Z [error][Notifications]: Error sending webhook notification {"type":"TEST_NOTIFICATION","subject":"Test Notification","errorMessage":""}

2024-07-10T00:35:00.019Z [debug][Jobs]: Starting scheduled job: Download Sync 

2024-07-10T00:35:00.024Z [info][Jobs]: Starting scheduled job: Plex Recently Added Scan 

2024-07-10T00:35:00.024Z [info][Plex Scan]: Scan starting {"sessionId":"e2b1445c-11c5-4076-8622-6c5278f9518b"}

2024-07-10T00:35:00.034Z [info][Plex Scan]: Beginning to process recently added for library: Movies {"lastScan":1720571400033}

2024-07-10T00:35:00.070Z [info][Notifications]: Sending notification(s) for MEDIA_AVAILABLE {"subject":"Trigger Warning (2024)"}

2024-07-10T00:35:00.071Z [debug][Notifications]: Sending Slack notification {"type":"MEDIA_AVAILABLE","subject":"Trigger Warning (2024)"}

2024-07-10T00:35:00.072Z [debug][Notifications]: Sending Telegram notification {"type":"MEDIA_AVAILABLE","subject":"Trigger Warning (2024)"}

2024-07-10T00:35:00.092Z [info][Plex Scan]: Media for Trigger Warning exists. Changes were detected and the title will be updated. 

2024-07-10T00:35:00.335Z [error][Notifications]: Error sending Telegram notification {"type":"MEDIA_AVAILABLE","subject":"Trigger Warning (2024)","errorMessage":""}

2024-07-10T00:35:04.096Z [info][Plex Scan]: Beginning to process recently added for library: TV Shows {"lastScan":1720571400048}

2024-07-10T00:35:04.116Z [info][Plex Scan]: Recently Added Scan Complete 

2024-07-10T00:36:00.022Z [debug][Jobs]: Starting scheduled job: Download Sync 

2024-07-10T00:37:00.024Z [debug][Jobs]: Starting scheduled job: Download Sync 

2024-07-10T00:38:00.008Z [debug][Jobs]: Starting scheduled job: Download Sync 

2024-07-10T00:38:05.226Z [debug][Notifications]: Sending Telegram notification {"type":"TEST_NOTIFICATION","subject":"Test Notification"}

2024-07-10T00:38:05.495Z [error][Notifications]: Error sending Telegram notification {"type":"TEST_NOTIFICATION","subject":"Test Notification","errorMessage":""}

Platform

desktop

Device

Docker

Operating System

Ubuntu + Docker

Browser

Firefox

Additional Context

No response

Code of Conduct

  • [X] I agree to follow Overseerr's Code of Conduct

Sprooty avatar Jul 10 '24 00:07 Sprooty