Skip to content

fix: narrow telegram chat display names#26

Draft
dutchiono wants to merge 1 commit intoelizaos-plugins:alphafrom
dutchiono:codex/windows-chat-name-narrowing
Draft

fix: narrow telegram chat display names#26
dutchiono wants to merge 1 commit intoelizaos-plugins:alphafrom
dutchiono:codex/windows-chat-name-narrowing

Conversation

@dutchiono
Copy link
Copy Markdown

Summary

  • centralize Telegram chat display-name selection behind a narrowed helper
  • avoid accessing chat fields that are not present on every Telegraf chat variant

Why

Windows Milady installs were surfacing a TypeScript build failure in this plugin because ctx.chat is a union and the code accessed title, first_name, and username without narrowing.

Validation

  • bun run build

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 9, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 37c5f9d3-59b8-481c-948e-b8fc774d44dc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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