Gotify增加extras项

This commit is contained in:
CSSC-WORK\murmur 2023-09-12 16:46:27 +08:00
parent 9beece2f41
commit 8500ea3ab7

View File

@ -66,7 +66,12 @@ _{datetime.datetime.now()}_
res = requests.post("http://106.52.193.182:10004/message?token=AK9uikNvF7HxlGG", json={ res = requests.post("http://106.52.193.182:10004/message?token=AK9uikNvF7HxlGG", json={
"title": title, "title": title,
"description": description, "description": description,
"message": c,}) "message": c,
"extras": {
"client::display": {
"contentType": "text/markdown"
}}
})
print("Gotify",res) print("Gotify",res)
# try: # try:
# res = res.json() # res = res.json()