Skip to content

Telegram startup can hang indefinitely on singleton/getMe calls #2417

@myagizmaktav

Description

@myagizmaktav

Problem

pilot start --telegram can block during startup before polling fully comes up.

Root Cause

Two startup API calls have no short bound:

  • CheckSingleton()
  • initial getMe() in StartPolling()

If Telegram API is slow or unreachable, startup can stall instead of degrading gracefully.

Proposed Fix

Wrap both startup calls in a short timeout (10s) so polling startup continues or fails fast.
Add regression coverage with a slow test server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions