ошибка при запуске кода через консоль.
вот ошибка
2022-08-18 19:02:59,880 (__init__.py:660 MainThread) ERROR - TeleBot: "Threaded
polling exception: A request to the Telegram API was unsuccessful. Error code: 4
00. Description: Bad Request: chat not found"
2022-08-18 19:02:59,881 (__init__.py:662 MainThread) ERROR - TeleBot: "Exception
traceback:
Traceback (most recent call last):
File "D:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-package
s\telebot\__init__.py", line 651, in __threaded_polling
self.worker_pool.raise_exceptions()
File "D:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-package
s\telebot\util.py", line 147, in raise_exceptions
raise self.exception_info
File "D:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-package
s\telebot\util.py", line 93, in run
task(*args, **kwargs)
File "D:\bots\bdo.py", line 8, in start_message
bot.send_message(msg.id, "Напиши мне Привет)")
File "D:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-package
s\telebot\__init__.py", line 1009, in send_message
entities, allow_sending_without_reply, protect_content=protect_content))
File "D:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-package
s\telebot\apihelper.py", line 267, in send_message
return _make_request(token, method_url, params=payload, method='post')
File "D:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-package
s\telebot\apihelper.py", line 152, in _make_request
json_result = _check_result(method_name, result)
File "D:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-package
s\telebot\apihelper.py", line 179, in _check_result
raise ApiTelegramException(method_name, result, result_json)
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsucc
essful. Error code: 400. Description: Bad Request: chat not found
" вот сам код
import anime_images_api
import telebot