S
S
Slava_Wagner-prom2018-07-17 17:37:38
Python
Slava_Wagner-prom, 2018-07-17 17:37:38

Help, how to fix telegram bot error 409 conflict on python?

Help how to fix error 409 conflict
Traceback (most recent call last):
File "D:\python\telebot\util.py", line 59, in run
task(*args, **kwargs)
File "D:\python\ telebot\__init__.py", line 158, in __retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout)
File "D:\python\telebot\__init__.py", line 128, in get_updates
json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates)
File "D:\python\telebot\apihelper.py", line 180, in get_updates
return _make_request(token, method_url, params=payload)
File "D:\python\telebot\apihelper.py", line 56, in _make_request
return _check_result(method_name, result)['result']
File "D:\python\telebot\apihelper.py", line 75, in _check_result
raise ApiException(msg, method_name, result)
telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 409 Conflict. Response body:
[b'{"ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}']
"
2018-07- 14 17:15:56,933 (__init__.py:299 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. The server returned HTTP 409 Conflict. response body:
[b'{"ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}']"
2018-07-14 17: 16:00,833 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. The server returned HTTP 409 Conflict. Response body:\n[b\'{" ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}\']',)
In python, I know what that means is running bot from two clients, but I only run from one, with pycharm, what's the problem, tell me.
Ps The script of the bot in the comments will be thrown off if necessary!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question