@ggdt.ru,
вот что стало выдавать теперь:
C:\Users\User\Desktop\bot>python main.py
2024-11-06 16:23:38,945 (__init__.py:1241 MainThread) ERROR - TeleBot: "Threaded polling exception: A request to the Telegram API was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"
2024-11-06 16:23:38,947 (__init__.py:1243 MainThread) ERROR - TeleBot: "Exception traceback:
Traceback (most recent call last):
File "E:\Games\Python\Lib\site-packages\telebot\__init__.py", line 1234, in __threaded_polling
polling_thread.raise_exceptions()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "E:\Games\Python\Lib\site-packages\telebot\util.py", line 111, in raise_exceptions
raise self.exception_info
File "E:\Games\Python\Lib\site-packages\telebot\util.py", line 93, in run
task(*args, **kwargs)
~~~~^^^^^^^^^^^^^^^^^
File "E:\Games\Python\Lib\site-packages\telebot\__init__.py", line 688, in __retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1),
allowed_updates=allowed_updates,
timeout=timeout, long_polling_timeout=long_polling_timeout)
File "E:\Games\Python\Lib\site-packages\telebot\__init__.py", line 660, in get_updates
json_updates = apihelper.get_updates(
self.token, offset=offset, limit=limit, timeout=timeout, allowed_updates=allowed_updates,
long_polling_timeout=long_polling_timeout)
File "E:\Games\Python\Lib\site-packages\telebot\apihelper.py", line 330, in get_updates
return _make_request(token, method_url, params=payload)
File "E:\Games\Python\Lib\site-packages\telebot\apihelper.py", line 168, in _make_request
json_result = _check_result(method_name, result)
File "E:\Games\Python\Lib\site-packages\telebot\apihelper.py", line 195, in _check_result
raise ApiTelegramException(method_name, result, result_json)
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
"
2024-11-06 16:23:42,941 (__init__.py:1241 MainThread) ERROR - TeleBot: "Threaded polling exception: A request to the Telegram API was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"
2024-11-06 16:23:42,942 (__init__.py:1243 MainThread) ERROR - TeleBot: "Exception traceback:
Traceback (most recent call last):
File "E:\Games\Python\Lib\site-packages\telebot\__init__.py", line 1234, in __threaded_polling
polling_thread.raise_exceptions()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "E:\Games\Python\Lib\site-packages\telebot\util.py", line 111, in raise_exceptions
raise self.exception_info
File "E:\Games\Python\Lib\site-packages\telebot\util.py", line 93, in run
task(*args, **kwargs)
~~~~^^^^^^^^^^^^^^^^^
File "E:\Games\Python\Lib\site-packages\telebot\__init__.py", line 688, in __retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1),
allowed_updates=allowed_updates,
timeout=timeout, long_polling_timeout=long_polling_timeout)
File "E:\Games\Python\Lib\site-packages\telebot\__init__.py", line 660, in get_updates
json_updates = apihelper.get_updates(
self.token, offset=offset, limit=limit, timeout=timeout, allowed_updates=allowed_updates,
long_polling_timeout=long_polling_timeout)
File "E:\Games\Python\Lib\site-packages\telebot\apihelper.py", line 330, in get_updates
return _make_request(token, method_url, params=payload)
File "E:\Games\Python\Lib\site-packages\telebot\apihelper.py", line 168, in _make_request
json_result = _check_result(method_name, result)
File "E:\Games\Python\Lib\site-packages\telebot\apihelper.py", line 195, in _check_result
raise ApiTelegramException(method_name, result, result_json)
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
"
2024-11-06 16:23:47,650 (__init__.py:1241 MainThread) ERROR - TeleBot: "Threaded polling exception: A request to the Telegram API was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"
2024-11-06 16:23:47,651 (__init__.py:1243 MainThread) ERROR - TeleBot: "Exception traceback:
Traceback (most recent call last):
File "E:\Games\Python\Lib\site-packages\telebot\__init__.py", line 1234, in __threaded_polling
polling_thread.raise_exceptions()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "E:\Games\Python\Lib\site-packages\telebot\util.py", line 111, in raise_exceptions
raise self.exception_info
File "E:\Games\Python\Lib\site-packages\telebot\util.py", line 93, in run
task(*args, **kwargs)
~~~~^^^^^^^^^^^^^^^^^
File "E:\Games\Python\Lib\site-packages\telebot\__init__.py", line 688, in __retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1),
allowed_updates=allowed_updates,
timeout=timeout, long_polling_timeout=long_polling_timeout)
File "E:\Games\Python\Lib\site-packages\telebot\__init__.py", line 660, in get_updates
json_updates = apihelper.get_updates(
self.token, offset=offset, limit=limit, timeout=timeout, allowed_updates=allowed_updates,
long_polling_timeout=long_polling_timeout)
File "E:\Games\Python\Lib\site-packages\telebot\apihelper.py", line 330, in get_updates
return _make_request(token, method_url, params=payload)
File "E:\Games\Python\Lib\site-packages\telebot\apihelper.py", line 168, in _make_request
json_result = _check_result(method_name, result)
File "E:\Games\Python\Lib\site-packages\telebot\apihelper.py", line 195, in _check_result
raise ApiTelegramException(method_name, result, result_json)
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
"
2024-11-06 16:23:53,878 (__init__.py:1241 MainThread) ERROR - TeleBot: "Threaded polling exception: A request to the Telegram API was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"
2024-11-06 16:23:53,879 (__init__.py:1243 MainThread) ERROR - TeleBot: "Exception traceback:
Traceback (most recent call last):
File "E:\Games\Python\Lib\site-packages\telebot\__init__.py", line 1234, in __threaded_polling
polling_thread.raise_exceptions()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "E:\Games\Python\Lib\site-packages\telebot\util.py", line 111, in raise_exceptions
raise self.exception_info
File "E:\Games\Python\Lib\site-packages\telebot\util.py", line 93, in run
task(*args, **kwargs)
~~~~^^^^^^^^^^^^^^^^^
File "E:\Games\Python\Lib\site-packages\telebot\__init__.py", line 688, in __retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1),
allowed_updates=allowed_updates,
timeout=timeout, long_polling_timeout=long_polling_timeout)
File "E:\Games\Python\Lib\site-packages\telebot\__init__.py", line 660, in get_updates
json_updates = apihelper.get_updates(
self.token, offset=offset, limit=limit, timeout=timeout, allowed_updates=allowed_updates,
long_polling_timeout=long_polling_timeout)
File "E:\Games\Python\Lib\site-packages\telebot\apihelper.py", line 330, in get_updates
return _make_request(token, method_url, params=payload)
File "E:\Games\Python\Lib\site-packages\telebot\apihelper.py", line 168, in _make_request
json_result = _check_result(method_name, result)
File "E:\Games\Python\Lib\site-packages\telebot\apihelper.py", line 195, in _check_result
raise ApiTelegramException(method_name, result, result_json)
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running