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={
"title": title,
"description": description,
"message": c,})
"message": c,
"extras": {
"client::display": {
"contentType": "text/markdown"
}}
})
print("Gotify",res)
# try:
# res = res.json()