From 0d6191470a74ae1441b6cbbe2e037657cf59f2cc Mon Sep 17 00:00:00 2001 From: omg-xtao <100690902+omg-xtao@users.noreply.github.com> Date: Sun, 6 Nov 2022 22:42:00 +0800 Subject: [PATCH] CI: Support topic --- telegram_update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telegram_update.py b/telegram_update.py index 3877a6b..488a45e 100644 --- a/telegram_update.py +++ b/telegram_update.py @@ -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)