Skip to content

fix(telegram): cap startup API calls#2419

Open
myagizmaktav wants to merge 1 commit intoqf-studio:mainfrom
myagizmaktav:upstream-telegram-startup-timeout
Open

fix(telegram): cap startup API calls#2419
myagizmaktav wants to merge 1 commit intoqf-studio:mainfrom
myagizmaktav:upstream-telegram-startup-timeout

Conversation

@myagizmaktav
Copy link
Copy Markdown

Summary

  • add a short timeout around Telegram singleton and initial getMe() startup calls
  • prevent pilot start --telegram from hanging indefinitely when Telegram is slow or unreachable
  • add a regression test with a delayed startup API response

Verification

  • go test ./internal/adapters/telegram/...

Closes #2417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Telegram startup can hang indefinitely on singleton/getMe calls

1 participant