Skip to content

feat(telegram): add /new command and resolve getUpdates conflict#16

Open
max-elia wants to merge 1 commit into
badlogic:mainfrom
max-elia:pr/reset-session-and-conflict-resilience
Open

feat(telegram): add /new command and resolve getUpdates conflict#16
max-elia wants to merge 1 commit into
badlogic:mainfrom
max-elia:pr/reset-session-and-conflict-resilience

Conversation

@max-elia

Copy link
Copy Markdown

Description

Introduces the following enhancements:

  1. Session Reset (/new): Injects a /new command for Telegram users that safely aborts active runs, clears queues, resets the session, and triggers a reconnect in the new session.
  2. Conflict Resilience: Catches Conflict: terminated by other getUpdates request in the polling loop and delays by 3 seconds before retrying, resolving infinite loop wars when reloading.
  3. Robust Slash Commands: Extracts command names cleanly, handling arguments and bot usernames appended in Telegram.

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.

1 participant