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 0737cae commit 25b8575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 25b8575

Please sign in to comment.