Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sleontenko
Copy link
Contributor

Summary

  • Extract forwarded message origin info from Telegram messages
  • Support both newer forward_origin API and legacy forward_from/forward_from_chat fields
  • Add [Forwarded from ...] prefix in message body for context
  • Expose ForwardedFrom and ForwardedDate in message context metadata

Changes

  • Added describeForwardOrigin() helper function in src/telegram/bot/helpers.ts
  • Integrated forwarded message context in src/telegram/bot-message-context.ts

Test plan

  • Manual testing: forwarded messages from users, channels, and groups display origin correctly
  • Tested with hidden privacy mode users (shows username only)
  • Build passes
  • Lint passes

🤖 Generated with Claude Code

Extract forwarded message origin info from Telegram messages.
Supports both the newer forward_origin API and legacy
forward_from/forward_from_chat fields.

Adds:
- describeForwardOrigin() helper function
- [Forwarded from ...] prefix in message body
- ForwardedFrom and ForwardedDate in context metadata

Co-Authored-By: Claude Opus 4.5 <[email protected]>
sleontenko added a commit to MyPraxisAI/cogito-by-clawdbot that referenced this pull request Jan 17, 2026
Extract forwarded message origin info from Telegram messages.
Supports both the newer forward_origin API and legacy
forward_from/forward_from_chat fields.

PR to upstream: openclaw#1090

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@steipete steipete self-assigned this Jan 17, 2026
@steipete
Copy link
Contributor

Landed via cherry-pick to main.\n\n- Land commit: 1569d29\n- Cherry-pick source: 68890cf5e\n- Gate: pnpm lint && pnpm build OK; pnpm test failed (vitest worker exited unexpectedly: [vitest-pool]: Worker forks emitted error).\n\nThanks @sleontenko!

@steipete steipete closed this Jan 17, 2026
TSavo pushed a commit to TSavo/clawdbot that referenced this pull request Jan 18, 2026
rsneh pushed a commit to rsneh/clawdbot that referenced this pull request Jan 21, 2026
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.

2 participants