From 25b85752d021ed251ff30e972f71922a1f7818c7 Mon Sep 17 00:00:00 2001 From: figeral Date: Mon, 1 Apr 2024 23:10:25 +0100 Subject: [PATCH] changes done on url parameters --- src/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.py b/src/bot.py index c18adbf..197e8e9 100644 --- a/src/bot.py +++ b/src/bot.py @@ -9,7 +9,7 @@ def send_msg(text: str): baseurl = "api.telegram.org" url = f"{baseurl}/bot{token}" - payload = dict(user_id=chanel_id, text=text) + payload = dict(chat_id=chanel_id, text=text) try: requests.post(url=url, params=payload)