diff --git a/src/bot.py b/src/bot.py index 197e8e9..af35e3e 100644 --- a/src/bot.py +++ b/src/bot.py @@ -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)