Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибка авторизации #15

Open
Blacky0892 opened this issue May 3, 2023 · 0 comments
Open

Ошибка авторизации #15

Blacky0892 opened this issue May 3, 2023 · 0 comments

Comments

@Blacky0892
Copy link

После настроек и запуска скрипта 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
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant