1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

send something pls

This commit is contained in:
Steffo 2019-01-02 19:12:18 +01:00
parent 3fb9905166
commit cb1650d912

View file

@ -415,8 +415,8 @@ def hooks_github():
# TODO: add secret check # TODO: add secret check
message = f"🐙 Nuovi aggiornamenti a Royalnet:\n" message = f"🐙 Nuovi aggiornamenti a Royalnet:\n"
for commit in j.get("commits", []): for commit in j.get("commits", []):
message += f"<b>{commit['message']}</b> di {commit['author']}\n" message += f'<a href="https://github.com/Steffo99/royalnet/commit/{commit["sha"]}">{commit["message"]}</b> di {commit["author"]}\n'
telegram_bot.send_message(config["Telegram"]["main_group"], telegram_bot.send_message(config["Telegram"]["main_group"], message,
parse_mode="HTML", disable_web_page_preview=True, disable_notification=True) parse_mode="HTML", disable_web_page_preview=True, disable_notification=True)
return "Done." return "Done."