2023-07-08 20:49:27,766 (__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"
2023-07-08 20:49:27,766 (__init__.py:1085 MainThread) ERROR - TeleBot: "Exception traceback:
Traceback (most recent call last):
File "путь\к\файлу\Python\Python311\Lib\site-packages\telebot\__init__.py", line 1074, in __threaded_polling
self.worker_pool.raise_exceptions()
File "путь\к\файлу\Python\Python311\Lib\site-packages\telebot\util.py", line 147, in raise_exceptions
raise self.exception_info
File "путь\к\файлу\Python\Python311\Lib\site-packages\telebot\util.py", line 90, in run
task(*args, **kwargs)
File "путь\к\коду\", line 838, in <lambda>
bot.register_next_step_handler(message, lambda msg: supportWait(bot, msg, user_help_id, operators_id))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "путь\к\коду\", line 857, in supportWait
bot.send_message(operators, f"Поступило новое сообщение в службу поддержки.\n\nUser ID: {message.from_user.id}\nUsername: @{message.from_user.username}\n\nВопрос клиента:\n<b>{message.text}</b>", parse_mode="HTML", reply_markup=joinDialogOperBtn)
File "путь\к\файлу\Python\Python311\Lib\site-packages\telebot\__init__.py", line 1549, in send_message
apihelper.send_message(
File "путь\к\файлу\Python\Python311\Lib\site-packages\telebot\apihelper.py", line 264, in send_message
return _make_request(token, method_url, params=payload, method='post')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "путь\к\файлу\Python\Python311\Lib\site-packages\telebot\apihelper.py", line 162, in _make_request
json_result = _check_result(method_name, result)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "путь\к\файлу\Python\Python311\Lib\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