From 8500ea3ab7b858b3825f2be5cfa6a47ce761b799 Mon Sep 17 00:00:00 2001 From: "CSSC-WORK\\murmur" Date: Tue, 12 Sep 2023 16:46:27 +0800 Subject: [PATCH] =?UTF-8?q?Gotify=E5=A2=9E=E5=8A=A0extras=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 194127a..743a70e 100755 --- a/server.py +++ b/server.py @@ -66,7 +66,12 @@ _{datetime.datetime.now()}_ res = requests.post("http://106.52.193.182:10004/message?token=AK9uikNvF7HxlGG", json={ "title": title, "description": description, - "message": c,}) + "message": c, + "extras": { + "client::display": { + "contentType": "text/markdown" + }} + }) print("Gotify",res) # try: # res = res.json()