mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-21 14:38:31 +00:00
CI: Support topic
This commit is contained in:
parent
019a00e2f2
commit
0d6191470a
@ -8,12 +8,14 @@ text = "#更新日志 #" + main['commit']['author']['name'].replace('_', '') + \
|
||||
main['sha'] + '): ' + main['commit']['message']
|
||||
push_content = {'chat_id': '-1001441461877', 'disable_web_page_preview': 'True', 'parse_mode': 'markdown',
|
||||
'text': text}
|
||||
push_content['message_thread_id'] = 1027828
|
||||
url = 'https://api.telegram.org/bot' + token + '/sendMessage'
|
||||
try:
|
||||
main_req = post(url, data=push_content)
|
||||
except:
|
||||
pass
|
||||
push_content['chat_id'] = '-1001319957857'
|
||||
del push_content['message_thread_id']
|
||||
time.sleep(1)
|
||||
try:
|
||||
main_req = post(url, data=push_content)
|
||||
|
Loading…
Reference in New Issue
Block a user