You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
После настроек и запуска скрипта bot.py появляется вот такая ошибка авторизации:
2023-05-03 19:39:32,762 (__init__.py:962 MainThread) ERROR - TeleBot: "Exception traceback:
Traceback (most recent call last):
File "/opt/lib/python3.10/site-packages/telebot/__init__.py", line 955, in infinity_polling
self.polling(non_stop=True, timeout=timeout, long_polling_timeout=long_polling_timeout,
File "/opt/lib/python3.10/site-packages/telebot/__init__.py", line 1040, in polling
logger.info('Starting your bot with username: [@%s]', self.user.username)
File "/opt/lib/python3.10/site-packages/telebot/__init__.py", line 273, in user
self._user = self.get_me()
File "/opt/lib/python3.10/site-packages/telebot/__init__.py", line 1236, in get_me
result = apihelper.get_me(self.token)
File "/opt/lib/python3.10/site-packages/telebot/apihelper.py", line 196, in get_me
return _make_request(token, method_url)
File "/opt/lib/python3.10/site-packages/telebot/apihelper.py", line 162, in _make_request
json_result = _check_result(method_name, result)
File "/opt/lib/python3.10/site-packages/telebot/apihelper.py", line 189, in _check_result
raise ApiTelegramException(method_name, result, result_json)
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 401. Description: Unauthorized
"
The text was updated successfully, but these errors were encountered:
После настроек и запуска скрипта bot.py появляется вот такая ошибка авторизации:
The text was updated successfully, but these errors were encountered: