From 77b6d41e8e6ffb50cf7e0414d3732fadc9a42834 Mon Sep 17 00:00:00 2001 From: figeral Date: Mon, 1 Apr 2024 23:13:13 +0100 Subject: [PATCH] changes done on url parameters --- src/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)