Skip to content

Refactor: Widen SessionKey chat_id and topic_id from int to str#95

Open
Revisor wants to merge 1 commit intoPleasePrompto:mainfrom
Revisor:str_session
Open

Refactor: Widen SessionKey chat_id and topic_id from int to str#95
Revisor wants to merge 1 commit intoPleasePrompto:mainfrom
Revisor:str_session

Conversation

@Revisor
Copy link
Copy Markdown

@Revisor Revisor commented Apr 3, 2026

Summary

  • Widen SessionKey.chat_id and topic_id from int to str
  • Remove MatrixIdMap (no longer needed — Matrix room IDs used directly)
  • Add Pydantic validators to coerce legacy int configs on upgrade

Eliminates the need for ID-mapping layers when integrating transports
that use string-based identifiers (Matrix room IDs, Slack channel IDs).
Telegram int IDs are coerced to str at the ingress boundary.

This PR prepares the codebase for Slack integration and simplifies
the existing Matrix transport.

  Eliminates the need for ID-mapping layers when integrating transports
  that use string-based identifiers (Matrix room IDs, Slack channel IDs).
  Telegram int IDs are coerced to str at the ingress boundary.

  Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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