diff --git a/HSMensaW_botA.py b/HSMensaW_botA.py index c503ef9..672d23e 100644 --- a/HSMensaW_botA.py +++ b/HSMensaW_botA.py @@ -236,7 +236,7 @@ def get_bot_id() -> int: if botID == -1: api_url = "https://api.telegram.org/bot" + telegram_bot_token + "/getMe" with urllib.request.urlopen(api_url) as response: - data = json.load(response) + data = json.loads(response.read().decode('utf-8')) botID = data["result"]["id"] return botID