Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
chen310 committed Mar 30, 2022
1 parent 729f0ec commit c23911e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion push/Telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def getKey(data):


def push(title, mdmsg, textmsg, config):
#deprecate str.replace() funciton since Telegram support ** syntax to bold text.
msg = textmsg
if len(config['userId']) == 0 or len(config['botToken']) == 0:
return
Expand Down
4 changes: 1 addition & 3 deletions push/wxpusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ def push(title, mdmsg, textmsg, config):
"content": mdmsg,
"summary": title,
"contentType": 3,
"topicIds": [
],
"topicIds": [],
"uids": [config['UID']]
,
}
url = "http://wxpusher.zjiecode.com/api/send/message"
requests.post(url, json=data)

0 comments on commit c23911e

Please sign in to comment.