Skip to content

Commit

Permalink
changes done on url parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Figeral committed Apr 1, 2024
1 parent 25b8575 commit 77b6d41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import os


def send_msg(text: str):
def send_msg(msg: str):
token = os.environ['GOMU_BOT_TOKEN']
chanel_id = os.environ['GOMU_CHANEL_ID']

baseurl = "api.telegram.org"
url = f"{baseurl}/bot{token}"
payload = dict(chat_id=chanel_id, text=text)
payload = dict(chat_id=chanel_id, text=msg)

try:
requests.post(url=url, params=payload)
Expand Down

0 comments on commit 77b6d41

Please sign in to comment.