Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1376 +/- ##
=======================================
Coverage 99.65% 99.65%
=======================================
Files 170 170
Lines 21993 21994 +1
Branches 3470 3470
=======================================
+ Hits 21917 21918 +1
Misses 68 68
Partials 8 8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
iq250vip
reviewed
Jul 29, 2025
apprise/plugins/google_chat.py
Outdated
| # Prepare our URL Parameters | ||
| "token": self.webhook_token, | ||
| "key": self.webhook_key, | ||
| "messageReplyOption" : "REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD", |
There was a problem hiding this comment.
Can this only be set when the user sets a threadId? This option seems to require a threadID, and without one it would error out:
$ apprise -vvv -b "Test444" "gchat://<workspace>/<key>/<token>"
2025-07-29 18:20:06,751 - DEBUG - Could not load translation path: /home/junhan/apprise/lib/python3.10/site-packages/apprise/i18n/en
2025-07-29 18:20:06,984 - DEBUG - Notification Plugin 119(s) and 165 Schema(s) loaded in 0.2276s
2025-07-29 18:20:06,985 - DEBUG - Loaded Google Chat URL: gchat://A...o/A...I/t...c/?format=markdown&overflow=upstream
2025-07-29 18:20:06,985 - DEBUG - Google Chat POST URL: https://chat.googleapis.com/v1/spaces/<workspace>/messages (cert_verify=True)
2025-07-29 18:20:06,985 - DEBUG - Google Chat Parameters: {'token': <token>', 'key': '<key>', 'messageReplyOption': 'REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD'}
2025-07-29 18:20:06,985 - DEBUG - Google Chat Payload: {'text': 'Test444'}
2025-07-29 18:20:08,080 - WARNING - Failed to send Google Chat notification: Bad Request - Unsupported Parameters., error=400.
2025-07-29 18:20:08,081 - DEBUG - Response Details:
b'{\n "error": {\n "code": 400,\n "message": "The request does not specify which message to reply to.",\n "status": "INVALID_ARGUMENT"\n }\n}\n'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Related issue (if applicable): #1372
Checklist
tox -e lint)tox -e minimal)Testing
Anyone can help test this source code as follows: