messageReplyOption only present if thread_key specified

pull/1376/head
Chris Caron 2025-07-29 22:14:00 -04:00
parent d3c2111c5d
commit d58d3faa70
1 changed files with 4 additions and 1 deletions

View File

@ -220,10 +220,13 @@ class NotifyGoogleChat(NotifyBase):
# Prepare our URL Parameters
"token": self.webhook_token,
"key": self.webhook_key,
"messageReplyOption" : "REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD",
}
if self.thread_key:
params.update({
"messageReplyOption": "REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD",
})
payload.update({
"thread": {
"thread_key": self.thread_key,