
Слава
18.07.2018
18:43:13
Вот полная версия ошибки:
2018-07-18 17:53:40,757 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. The server returned HTTP 401 Unauthorized. Response body:\n[b\'{"ok":false,"error_code":401,"description":"Unauthorized"}\']',)
Traceback (most recent call last):
File "D:/python\telebot\util.py", line 59, in run
task(*args, kwargs)
File "D:/python\telebot\__init__.py", line 159, in retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout)
File "D:/python\telebot\init__.py", line 129, in get_updates
json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates)
File "D:/python\telebot\apihelper.py", line 180, in get_updates
return _make_request(token, method_url, params=payload)
File "D:/python\telebot\apihelper.py", line 56, in _make_request
return _check_result(method_name, result)['result']
File "D:/python\telebot\apihelper.py", line 75, in _check_result
raise ApiException(msg, method_name, result)
telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 401 Unauthorized. Response body:
[b'{"ok":false,"error_code":401,"description":"Unauthorized"}']
"
2018-07-18 17:53:40,757 (__init__.py:300 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. The server returned HTTP 401 Unauthorized. Response body:
[b'{"ok":false,"error_code":401,"description":"Unauthorized"}']"
2018-07-18 17:53:41,079 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. The server returned HTTP 401 Unauthorized. Response body:\n[b\'{"ok":false,"error_code":401,"description":"Unauthorized"}\']',)
Traceback (most recent call last):
File "D:/python\telebot\util.py", line 59, in run
task(*args, kwargs)
File "D:/python\telebot\__init__.py", line 159, in retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout)
File "D:/python\telebot\init__.py", line 129, in get_updates
json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates)
File "D:/python\telebot\apihelper.py", line 180, in get_updates
return _make_request(token, method_url, params=payload)
File "D:/python\telebot\apihelper.py", line 56, in _make_request
return _check_result(method_name, result)['result']
File "D:/python\telebot\apihelper.py", line 75, in _check_result
raise ApiException(msg, method_name, result)
telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 401 Unauthorized. Response body:
[b'{"ok":false,"error_code":401,"description":"Unauthorized"}']
"