Skip to content

Commit

Permalink
lunching telegram actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Figeral committed Apr 1, 2024
1 parent e744228 commit 91187ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/source/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@


def send_mgs():
token = "bot6544277286:AAHSPQdHgM8YIKVQM0fGJzXXN04iudE3pNg"
token = "bot${{secrets.TELEGRAM_BOT_TOKEN}}"
url = f"https://api.telegram.org/{token}/sendMessage"
user_id = 5429946779
user_id = int("${{secrets.FITZ_ID}}")
msg = "A ${{github.event.type}} made by ${{github.event.author}} , fille free to edit it at ${{github.repository.html_url}}"
payload = dict(chat_id=user_id, text=msg)
requests.post(url=url, params=payload)
Expand Down

0 comments on commit 91187ea

Please sign in to comment.