• WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://127.0.0.1?

    @montarano Автор вопроса
    да вы что я в курсе как это исправить?
    Написано
  • Выдает ошибку json_result = _check_result(method_name, result) в чем ошибка?

    @montarano Автор вопроса
    Everything_is_bad, 2024-01-12 14:28:46,060 (__init__.py:1083 MainThread) ERROR - TeleBot: "Threaded polling exception: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: chat not found"
    2024-01-12 14:28:46,062 (__init__.py:1085 MainThread) ERROR - TeleBot: "Exception traceback:
    Traceback (most recent call last):
    File "/Users/admin/PycharmProjects/im bot/.venv/lib/python3.11/site-packages/telebot/__init__.py", line 1074, in __threaded_polling
    self.worker_pool.raise_exceptions()
    File "/Users/admin/PycharmProjects/im bot/.venv/lib/python3.11/site-packages/telebot/util.py", line 147, in raise_exceptions
    raise self.exception_info
    File "/Users/admin/PycharmProjects/im bot/.venv/lib/python3.11/site-packages/telebot/util.py", line 90, in run
    task(*args, **kwargs)
    File "/Users/admin/PycharmProjects/im bot/.venv/lib/python3.11/site-packages/telebot/__init__.py", line 6801, in _run_middlewares_and_handler
    result = handler['function'](message)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/admin/PycharmProjects/im bot/im bot.py", line 15, in send_to_admin
    bot.send_message(admin_chat_id, f"Message from user {message.chat.id}: {message.text}")
    File "/Users/admin/PycharmProjects/im bot/.venv/lib/python3.11/site-packages/telebot/__init__.py", line 1549, in send_message
    apihelper.send_message(
    File "/Users/admin/PycharmProjects/im bot/.venv/lib/python3.11/site-packages/telebot/apihelper.py", line 264, in send_message
    return _make_request(token, method_url, params=payload, method='post')
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/admin/PycharmProjects/im bot/.venv/lib/python3.11/site-packages/telebot/apihelper.py", line 162, in _make_request
    json_result = _check_result(method_name, result)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/admin/PycharmProjects/im bot/.venv/lib/python3.11/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: 400. Description: Bad Request: chat not found
    "
    Написано