mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-22 06:33:27 +00:00
CI: Support topic
This commit is contained in:
parent
8625dd596f
commit
0bd62162aa
@ -24,6 +24,8 @@ text = (
|
||||
url = f'https://api.telegram.org/bot{token}/sendMessage'
|
||||
for cid in ['-1001441461877', '-1001319957857']:
|
||||
push_content = {'chat_id': cid, 'disable_web_page_preview': 'True', 'parse_mode': 'markdown', 'text': text}
|
||||
if cid == '-1001441461877':
|
||||
push_content['message_thread_id'] = 1027828
|
||||
with contextlib.suppress(Exception):
|
||||
main_req = post(url, data=push_content)
|
||||
time.sleep(1)
|
||||
|
Loading…
Reference in New Issue
Block a user