[Python] Conflict: terminated by other getUpdates request; make sure that only one bot...

Discussão em 'Python' iniciado por Stack, Julho 25, 2025.

  1. Stack

    Stack Membro Participativo

    Does anyone get errors like this? How can I fix them?

    2021-11-07 08:29:38,643 - telegram.ext.updater - ERROR - Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
    2021-11-07 08:29:38,644 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception.
    Traceback (most recent call last):
    File "/usr/local/lib/python3.8/dist-packages/telegram/ext/updater.py", line 646, in _network_loop_retry
    if not action_cb():
    File "/usr/local/lib/python3.8/dist-packages/telegram/ext/updater.py", line 597, in polling_action_cb
    updates = self.bot.get_updates(
    File "/usr/local/lib/python3.8/dist-packages/telegram/ext/extbot.py", line 222, in get_updates
    updates = super().get_updates(
    File "/usr/local/lib/python3.8/dist-packages/telegram/bot.py", line 130, in decorator
    result = func(*args, **kwargs)
    File "/usr/local/lib/python3.8/dist-packages/telegram/bot.py", line 2861, in get_updates
    self._post(
    File "/usr/local/lib/python3.8/dist-packages/telegram/bot.py", line 295, in _post
    return self.request.post(
    File "/usr/local/lib/python3.8/dist-packages/telegram/utils/request.py", line 356, in post
    result = self._request_wrapper(
    File "/usr/local/lib/python3.8/dist-packages/telegram/utils/request.py", line 283, in _request_wrapper
    raise Conflict(message)
    telegram.error.Conflict: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running


    I get these answers from API

    api.telegram.org/bot<token>/getWebhookInfo --> {"ok":true,"result":"url":"","has_custom_certificate":false,"pending_update_count":0}}
    api.telegram.org/bot<token>/getUpdates --> {"ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}

    Continue reading...

Compartilhe esta Página