• Как решить проблему с простейшим ботом на Python?

    @ANANASIO Автор вопроса
    doktorfish0078, вместо TOKEN в коде стоит сам токен бота.
  • Как решить проблему с простейшим ботом на Python?

    @ANANASIO Автор вопроса
    Алан Гибизов, вот ошибка:
    2020-10-21 08:35:43,778 (util.py:75 PollingThread) ERROR - TeleBot: "ApiTelegramException occurred, args=('A request to the Telegram API was unsuccessful. Error code: 404 Description: Not Found',)
    Traceback (most recent call last):
    File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\telebot\util.py", line 69, in run
    task(*args, **kwargs)
    File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\telebot\__init__.py", line 285, in __retrieve_updates
    updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout)
    File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\telebot\__init__.py", line 255, in get_updates
    json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates)
    File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\telebot\apihelper.py", line 241, in get_updates
    return _make_request(token, method_url, params=payload)
    File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\telebot\apihelper.py", line 108, in _make_request
    json_result = _check_result(method_name, result)
    File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\telebot\apihelper.py", line 135, in _check_result
    raise ApiTelegramException(method_name, result, result_json)
    telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 404 Description: Not Found
    "
    2020-10-21 08:35:43,802 (__init__.py:455 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. Error code: 404 Description: Not Found"
  • Как решить проблему с простейшим ботом на Python?

    @ANANASIO Автор вопроса
    doktorfish0078, вот ошибка:
    2020-10-21 08:35:43,778 (util.py:75 PollingThread) ERROR - TeleBot: "ApiTelegramException occurred, args=('A request to the Telegram API was unsuccessful. Error code: 404 Description: Not Found',)
    Traceback (most recent call last):
    File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\telebot\util.py", line 69, in run
    task(*args, **kwargs)
    File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\telebot\__init__.py", line 285, in __retrieve_updates
    updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout)
    File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\telebot\__init__.py", line 255, in get_updates
    json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates)
    File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\telebot\apihelper.py", line 241, in get_updates
    return _make_request(token, method_url, params=payload)
    File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\telebot\apihelper.py", line 108, in _make_request
    json_result = _check_result(method_name, result)
    File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\telebot\apihelper.py", line 135, in _check_result
    raise ApiTelegramException(method_name, result, result_json)
    telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 404 Description: Not Found
    "
    2020-10-21 08:35:43,802 (__init__.py:455 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. Error code: 404 Description: Not Found"
  • Как решить проблему с простейшим ботом на Python?

    @ANANASIO Автор вопроса
    Спасибо, попробую, но пока задача открыта.
    Если поможет, отмечу решением.