Skip to content

fix(telegram): validate bot chat ids - #921

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/telegram-safe-chat-id
Aug 3, 2026
Merged

fix(telegram): validate bot chat ids#921
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/telegram-safe-chat-id

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • require Telegram bot destinations to be decimal integer chat IDs
  • preserve negative group IDs while rejecting zero, fractions, alternate numeric syntax, whitespace, and unsafe integers
  • prevent Number coercion and rounding from sending to the wrong chat

Verification

  • corepack pnpm@9.12.0 exec vitest run packages/bots/telegram/src/index.test.ts (15 passed)
  • corepack pnpm@9.12.0 --filter @profullstack/sh1pt-bot-telegram typecheck
  • git diff --check

Copilot AI review requested due to automatic review settings August 1, 2026 20:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ralyodio
ralyodio merged commit dd099fa into profullstack:master Aug 3, 2026
5 checks passed
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.

3 participants