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 1dec1a0 commit c063f30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/source/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@


def send_mgs():
token = "bot${{secrets.TELEGRAM_BOT_TOKEN}}"
token = "bot6544277286:AAHSPQdHgM8YIKVQM0fGJzXXN04iudE3pNg"
url = f"https://api.telegram.org/{token}/sendMessage"
user_id = ${{secrets.FITZ_ID}}
msg = "A ${{github.event.type}} made by ${{github.event.author}} , fille free to edit it at ${{github.repository.html_url}}"
user_id = 5429946779
msg = "A ${{github.event.type}} made by ${{github.event.sender.login}} , 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 c063f30

Please sign in to comment.