You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
fix ci upload (https://core.telegram.org/bots/api#markdownv2-style) test \_*[]()~`>#+-=|{}.!
This commit is contained in:
3
.github/scripts/telegram_url.py
vendored
3
.github/scripts/telegram_url.py
vendored
@@ -5,7 +5,10 @@ import urllib.parse
|
|||||||
url = f'https://api.telegram.org/bot{os.environ["BOT_TOKEN"]}'
|
url = f'https://api.telegram.org/bot{os.environ["BOT_TOKEN"]}'
|
||||||
url += f'/sendMediaGroup?chat_id={urllib.parse.quote(os.environ["CHANNEL_ID"])}&media='
|
url += f'/sendMediaGroup?chat_id={urllib.parse.quote(os.environ["CHANNEL_ID"])}&media='
|
||||||
|
|
||||||
|
# https://core.telegram.org/bots/api#markdownv2-style
|
||||||
msg = os.environ["COMMIT_MESSAGE"]
|
msg = os.environ["COMMIT_MESSAGE"]
|
||||||
|
for c in ['\\', '_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!']:
|
||||||
|
msg = msg.replace(c, f'\\{c}')
|
||||||
commit_url = os.environ["COMMIT_URL"]
|
commit_url = os.environ["COMMIT_URL"]
|
||||||
commit_id = os.environ["COMMIT_ID"][:7]
|
commit_id = os.environ["COMMIT_ID"][:7]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user