Skip to content

Show conflicting bot id in error when bot token is used multiple times #1143

@povesma

Description

@povesma

Tell which of the bots causes conflict:
Telegram NetworkError : Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
This is essential when you run more than one bot in an app, how to know what bot token is used twice.

Steps to reproduce

  1. Run 2 (or more) bot with the same token in different python-telegram-bot app instances
  2. Shortly you get the message: Telegram NetworkError : Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)

Expected behaviour

Add bot id to this message:
Telegram NetworkError : Conflict: terminated by other getUpdates request; make sure that only one bot instance is running **(bot: 12345456)** (409)

Actual behaviour

Telegram NetworkError : Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions